From eb7c33a0b09e73b1a2394d0166ad8bdd3f443ed8 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 6 Oct 2008 17:15:08 +0000 Subject: [PATCH] As known the script generate-kernel-patch generates a patch for the specified vanilla Linux kernel version. When I submitted this script for inclusion in the SCST Subversion repository the SRPT target driver was excluded by default because of checkpatch errors triggered by the SRPT source code. These errors have been fixed considerable time ago. Hence the patch below makes inclusion of the SRPT driver the default. This patch has been tested by verifying that the generated patch still applies cleanly to the 2.6.25.17 kernel, and that the patched kernel still compiles cleanly. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@511 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index e045abfd6..ec5fcef9b 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -26,7 +26,7 @@ function usage { echo "Usage: $0 [-q] [-s] [-m] , where: " echo " -q - add qla2x00t driver" - echo " -s - add srpt driver" + echo " -s - exclude srpt driver" echo " -m - add mpt target driver" } @@ -81,7 +81,7 @@ EOF ######################### qla2x00t="false" -srpt="false" +srpt="true" mpt_scst="false" if [ ! -e scst -o ! -e iscsi-scst -o ! -e srpt ]; then @@ -89,13 +89,14 @@ if [ ! -e scst -o ! -e iscsi-scst -o ! -e srpt ]; then exit 1 fi -set -- $(/usr/bin/getopt mq "$@") +set -- $(/usr/bin/getopt hmqs "$@") while [ "$1" != "${1#-}" ] do case "$1" in - '-q') qla2x00t="true"; shift;; - '-s') srpt="true"; shift;; + '-h') usage; exit 1;; '-m') mpt_scst="true"; shift;; + '-q') qla2x00t="true"; shift;; + '-s') srpt="false"; shift;; '--') shift;; *) usage; exit 1;; esac