nightly build: include fcst for kernel version 2.6.37 and later

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4028 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-12-21 09:58:09 +00:00
parent 2125cb8400
commit c8fcd3d082

View File

@@ -211,6 +211,13 @@ fi
# Strip patch level from the kernel version number.
kver="$(kernel_version "$1")"
# Include fcst in the patch for kernel versions 2.6.33 and later.
if [ "${kver}" ">" "2.6.32" ]; then
include_fcst="true"
else
include_fcst="false"
fi
# Make sure that for kernel 2.6.33 and later the line
# "#define CONFIG_SCST_PROC" is removed from scst/include/scst.h.
if grep -qw scst_sysfs scst/kernel/in-tree/Makefile.scst-${kver} \
@@ -319,7 +326,7 @@ mkdir -p "${tmpdir}"
tmp_Kconfig="${tmpdir}/Kconfig.scst-${kver}"
cat "scst/kernel/in-tree/Kconfig.scst" | \
if [ -e "${fcst_patch_series}" ]; then
if [ "${include_fcst}" ]; then
cat
else
grep -v '^source "drivers/scst/fcst/Kconfig"$'