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 <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@511 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-10-06 17:15:08 +00:00
parent f876bba99e
commit eb7c33a0b0
+6 -5
View File
@@ -26,7 +26,7 @@
function usage {
echo "Usage: $0 [-q] [-s] [-m] <kernel version>, 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