From 0aed574e886761ac454a8bff23462dc2be072ec2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 3 Aug 2020 02:56:37 +0000 Subject: [PATCH] scripts/generate-kernel-patch: Make this script appropriate for the trunk and 3.4.x branches git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9098 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 4a891db86..fe0454c84 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -459,8 +459,9 @@ if [ "${include_fcst}" = true ]; then done fi - add_file "fcst/Kbuild" \ - "drivers/scst/fcst/Makefile" + for f in fcst/Kbuild fcst/Makefile_in-tree; do + [ -e "$f" ] && add_file "$f" "drivers/scst/fcst/Makefile" + done add_file "fcst/Kconfig" "drivers/scst/fcst/Kconfig"