Only extract the kernel tree when it's needed, i.e. for the 2.6.26.* kernels.
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 21 Oct 2009 20:03:39 +0000 (20:03 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 21 Oct 2009 20:03:39 +0000 (20:03 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1235 d57e44dd-8a1f-0410-8b47-8ef2f437770f

qla2x00t/generate-in-tree-patches
scripts/generate-kernel-patch

index 0f69cb0..660908d 100755 (executable)
@@ -12,6 +12,10 @@ if [ "${1#2.6.26}" = "$1" ]; then
   exit 0
 fi
 
+if [ ! -e qla2xxx-orig/$1 ]; then
+  ./extract-qla2xxx-orig "$1"
+fi
+
 mkdir -p in-tree-patches/"${kernel_version}"
 
 for f in qla2xxx-orig/"${kernel_version}"/*
index 9cece27..e61cde5 100755 (executable)
@@ -356,9 +356,6 @@ add_file "iscsi-scst/README_in-tree" "Documentation/scst/README.iscsi" \
 
 if [ "${qla2x00t}" = "true" ]; then
 
-  if [ ! -e qla2x00t/qla2xxx-orig/$1 ]; then
-    ( cd qla2x00t && ./extract-qla2xxx-orig "$1" )
-  fi
   ( cd qla2x00t && ./generate-in-tree-patches "$1" )
 
   for f in $(ls qla2x00t/in-tree-patches/"$1"/*.patch 2>/dev/null)