From 66bc3f06a3c8fb8b9059ad3b583651afc9db6579 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 21 Oct 2008 10:23:42 +0000 Subject: [PATCH] The patch below implements the following changes: - Converted tabs to spaces in the help text. - Removed command-line option '-s' -- the srpt driver is now always included. - Recognizes now both kernel versions with three components (x.y.z) and kernel versions with four components (x.y.z.p). - Empty files for Kconfig and Makefile are added for those components that are not included in the kernel patch, such that make allyesconfig / make allmodconfig keeps working. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@528 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 65 ++++++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 12 deletions(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 6eb222a30..9034cd78f 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -24,11 +24,11 @@ ######################## function usage { - echo "Usage: $0 [-q] [-s] [-m] [-l] , where: " - echo " -q - add qla2x00t driver" - echo " -s - exclude srpt driver" - echo " -m - add mpt target driver" + echo "Usage: $0 [-h] [-l] [-m] [-q] [-s] , where: " + echo " -h - show this text" echo " -l - add scst_local target driver" + echo " -m - add mpt target driver" + echo " -q - add qla2x00t driver" } # Convert an existing patch. @@ -76,6 +76,18 @@ EOF fi } +function add_empty_file { + local a b + + cat <