scst_local module added.

Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@526 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-10-16 19:23:22 +00:00
parent 775ddf6f18
commit 3fb2634b6e
9 changed files with 1248 additions and 5 deletions
+18 -3
View File
@@ -24,10 +24,11 @@
########################
function usage {
echo "Usage: $0 [-q] [-s] [-m] <kernel version>, where: "
echo "Usage: $0 [-q] [-s] [-m] [-l] <kernel version>, where: "
echo " -q - add qla2x00t driver"
echo " -s - exclude srpt driver"
echo " -m - add mpt target driver"
echo " -l - add scst_local target driver"
}
# Convert an existing patch.
@@ -83,17 +84,19 @@ EOF
qla2x00t="false"
srpt="true"
mpt_scst="false"
scst_local="false"
if [ ! -e scst -o ! -e iscsi-scst -o ! -e srpt ]; then
if [ ! -e scst -o ! -e iscsi-scst -o ! -e srpt -o ! -e scst_local ]; then
echo "Please run this script from inside the SCST subversion source tree."
exit 1
fi
set -- $(/usr/bin/getopt hmqs "$@")
set -- $(/usr/bin/getopt hlmqs "$@")
while [ "$1" != "${1#-}" ]
do
case "$1" in
'-h') usage; exit 1;;
'-l') scst_local="true"; shift;;
'-m') mpt_scst="true"; shift;;
'-q') qla2x00t="true"; shift;;
'-s') srpt="false"; shift;;
@@ -264,3 +267,15 @@ if [ "$mpt_scst" = "true" ]; then
done
fi
# Directory drivers/scst/scst-local
if [ "$scst_local" = "true" ]; then
add_file "scst_local/in-tree/Kconfig" "drivers/scst/scst_local/Kconfig"
add_file "scst_local/in-tree/Makefile" "drivers/scst/scst_local/Makefile"
add_file "scst_local/scst_local.c" "drivers/scst/scst_local/scst_local.c"
fi