mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
Merged revisions 7012-7029 via svnmerge from
svn+ssh://svn.code.sf.net/p/scst/svn/trunk ........ r7012 | vlnb | 2016-10-17 22:00:58 -0700 (Mon, 17 Oct 2016) | 3 lines iscsi-scst: HOWTO updated ........ r7013 | bvassche | 2016-10-21 14:21:29 -0700 (Fri, 21 Oct 2016) | 2 lines scst regression tests: Unload the scst kernel module explicitly ........ r7014 | bvassche | 2016-10-21 14:54:02 -0700 (Fri, 21 Oct 2016) | 1 line scstadmin: Avoid that specifying an attribute multiple times results in an incomprehensible error message ........ r7015 | vlnb | 2016-10-21 19:19:03 -0700 (Fri, 21 Oct 2016) | 3 lines Docs updates ........ r7016 | bvassche | 2016-10-25 13:49:21 -0700 (Tue, 25 Oct 2016) | 1 line scst_user: Port to Linux kernel v4.9 ........ r7017 | bvassche | 2016-10-25 13:50:15 -0700 (Tue, 25 Oct 2016) | 4 lines ib_srpt: Cache global L_Key This patch does not change any functionality. ........ r7018 | bvassche | 2016-10-25 13:50:34 -0700 (Tue, 25 Oct 2016) | 2 lines ib_srpt: Port to Linux kernel v4.9 ........ r7019 | bvassche | 2016-10-25 15:21:46 -0700 (Tue, 25 Oct 2016) | 4 lines isert-scst: Cache L_Key This patch does not change any functionality. ........ r7020 | bvassche | 2016-10-25 15:22:07 -0700 (Tue, 25 Oct 2016) | 2 lines isert-scst: Port to Linux kernel v4.9 ........ r7021 | bvassche | 2016-10-26 14:33:50 -0700 (Wed, 26 Oct 2016) | 1 line iscsi-scst: Port to Linux kernel versions >= v4.7 ........ r7022 | vlnb | 2016-11-16 20:33:38 -0800 (Wed, 16 Nov 2016) | 7 lines generate-kernel-patch: fix custom cross-compilation kernel case Otherwise there is non-fatal error like: No such file or directory grep: /lib/modules/<current_running_kernel>/build/.config: Permission denied ........ r7023 | vlnb | 2016-11-16 20:44:48 -0800 (Wed, 16 Nov 2016) | 3 lines generate-kernel-patch: optimize generation of Makefile for qla2x00t ........ r7024 | vlnb | 2016-11-16 20:55:15 -0800 (Wed, 16 Nov 2016) | 3 lines generate-kernel-patch: optimize generation of Makefile for dev_handlers ........ r7025 | vlnb | 2016-11-16 21:06:59 -0800 (Wed, 16 Nov 2016) | 3 lines generate-kernel-patch: optimize generation of Makefile for scst ........ r7026 | vlnb | 2016-11-16 21:12:33 -0800 (Wed, 16 Nov 2016) | 3 lines generate-kernel-patch: optimize generation of Makefile for drivers/Kconfig ........ r7027 | vlnb | 2016-11-16 21:18:55 -0800 (Wed, 16 Nov 2016) | 3 lines generate-kernel-patch: optimize generation of Makefile.drivers patch ........ r7028 | vlnb | 2016-11-16 21:24:07 -0800 (Wed, 16 Nov 2016) | 3 lines generate-kernel-patch: optimize generation of Makefile for scst_local ........ r7029 | vlnb | 2016-11-22 19:45:35 -0800 (Tue, 22 Nov 2016) | 5 lines scst: fix overflows handling for tapes Reported and tested by Matthew D. Frederes <matt@bitech.biz> ........ git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.2.x@7030 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -114,7 +114,7 @@ function specialize_patch {
|
||||
fi |
|
||||
"$(dirname $0)/specialize-patch" \
|
||||
${specialize_patch_options} \
|
||||
-v kernel_version="${kver3}" \
|
||||
-v kernel_version="${kver}" \
|
||||
-v SCSI_EXEC_REQ_FIFO_DEFINED="${scsi_exec_req_fifo_defined}" \
|
||||
-v SCST_IO_CONTEXT="${scst_io_context}"
|
||||
else
|
||||
@@ -224,9 +224,15 @@ else
|
||||
include_fcst="false"
|
||||
fi
|
||||
|
||||
if [ -e "scst/kernel/in-tree/Makefile.scst-${kver}" ]; then
|
||||
scst_makefile="Makefile.scst-${kver}"
|
||||
else
|
||||
scst_makefile="Makefile.scst"
|
||||
fi
|
||||
|
||||
# Make sure that for kernel 2.6.26 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} \
|
||||
if grep -qw scst_sysfs scst/kernel/in-tree/${scst_makefile} \
|
||||
|| [ "${generating_upstream_patch}" = "true" ];
|
||||
then
|
||||
specialize_patch_options="${specialize_patch_options} -v config_scst_proc_undefined=1"
|
||||
@@ -333,11 +339,21 @@ done
|
||||
# Directory drivers/
|
||||
|
||||
(
|
||||
add_patch "scst/kernel/in-tree/Kconfig.drivers.Linux-${kver}.patch" \
|
||||
"drivers/Kconfig"
|
||||
if [ -e "scst/kernel/in-tree/Kconfig.drivers.Linux-${kver}.patch" ]; then
|
||||
add_patch "scst/kernel/in-tree/Kconfig.drivers.Linux-${kver}.patch" \
|
||||
"drivers/Kconfig"
|
||||
else
|
||||
add_patch "scst/kernel/in-tree/Kconfig.drivers.Linux.patch" \
|
||||
"drivers/Kconfig"
|
||||
fi
|
||||
|
||||
add_patch "scst/kernel/in-tree/Makefile.drivers.Linux-${kver}.patch"\
|
||||
"drivers/Makefile"
|
||||
if [ -e "scst/kernel/in-tree/Makefile.drivers.Linux-${kver}.patch" ]; then
|
||||
add_patch "scst/kernel/in-tree/Makefile.drivers.Linux-${kver}.patch"\
|
||||
"drivers/Makefile"
|
||||
else
|
||||
add_patch "scst/kernel/in-tree/Makefile.drivers.Linux.patch"\
|
||||
"drivers/Makefile"
|
||||
fi
|
||||
) \
|
||||
| process_patch "scst_01_drivers_kbuild.diff"
|
||||
|
||||
@@ -357,8 +373,8 @@ else
|
||||
fi >"${tmp_Kconfig}"
|
||||
add_file "${tmp_Kconfig}" "drivers/scst/Kconfig"
|
||||
|
||||
tmp_Makefile="${tmpdir}/Makefile.scst-${kver}"
|
||||
cat "scst/kernel/in-tree/Makefile.scst-${kver}" | \
|
||||
tmp_Makefile="${tmpdir}/${scst_makefile}"
|
||||
cat "scst/kernel/in-tree/${scst_makefile}" | \
|
||||
if [ "$include_proc_impl" != "true" ]; then
|
||||
grep -v 'scst_proc'
|
||||
else
|
||||
@@ -413,10 +429,16 @@ done
|
||||
|
||||
|
||||
# Directory drivers/scst/dev_handlers/
|
||||
|
||||
add_file "scst/kernel/in-tree/Makefile.dev_handlers-${kver}" \
|
||||
"drivers/scst/dev_handlers/Makefile" \
|
||||
| process_patch "scst_11_dev_handlers_makefile.diff"
|
||||
if [ -e "scst/kernel/in-tree/Makefile.dev_handlers-${kver}" ]
|
||||
then
|
||||
add_file "scst/kernel/in-tree/Makefile.dev_handlers-${kver}" \
|
||||
"drivers/scst/dev_handlers/Makefile" \
|
||||
| process_patch "scst_11_dev_handlers_makefile.diff"
|
||||
else
|
||||
add_file "scst/kernel/in-tree/Makefile.dev_handlers" \
|
||||
"drivers/scst/dev_handlers/Makefile" \
|
||||
| process_patch "scst_11_dev_handlers_makefile.diff"
|
||||
fi
|
||||
|
||||
for f in $(ls scst/src/dev_handlers/*.[ch] 2>/dev/null)
|
||||
do
|
||||
@@ -456,7 +478,7 @@ add_file "fcst/README" "Documentation/scst/README.fcst" \
|
||||
# Directory drivers/scst/iscsi-scst/
|
||||
|
||||
# Make sure the file iscsi-scst/iscsi_scst_itf_ver.h is up to date.
|
||||
make -s -C iscsi-scst include/iscsi_scst_itf_ver.h
|
||||
make KVER=${kver3} -s -C iscsi-scst include/iscsi_scst_itf_ver.h
|
||||
|
||||
(
|
||||
for f in $(ls iscsi-scst/include/*h 2>/dev/null)
|
||||
@@ -517,8 +539,14 @@ if [ "${qla2x00t}" = "true" ]; then
|
||||
add_file "qla2x00t/qla2x_tgt_def.h" \
|
||||
"drivers/scsi/qla2xxx/qla2x_tgt_def.h"
|
||||
|
||||
add_file "qla2x00t/qla2x00-target/Makefile_in-tree-${kver}" \
|
||||
if [ -e "qla2x00t/qla2x00-target/Makefile_in-tree-${kver}" ]
|
||||
then
|
||||
add_file "qla2x00t/qla2x00-target/Makefile_in-tree-${kver}" \
|
||||
"drivers/scst/qla2xxx-target/Makefile"
|
||||
else
|
||||
add_file "qla2x00t/qla2x00-target/Makefile_in-tree" \
|
||||
"drivers/scst/qla2xxx-target/Makefile"
|
||||
fi
|
||||
|
||||
add_file "qla2x00t/qla2x00-target/Kconfig" \
|
||||
"drivers/scst/qla2xxx-target/Kconfig"
|
||||
@@ -615,7 +643,11 @@ fi
|
||||
|
||||
add_file "scst_local/in-tree/Kconfig" "drivers/scst/scst_local/Kconfig"
|
||||
|
||||
add_file "scst_local/in-tree/Makefile-${kver}" "drivers/scst/scst_local/Makefile"
|
||||
if [ -e "scst_local/in-tree/Makefile-${kver}" ]; then
|
||||
add_file "scst_local/in-tree/Makefile-${kver}" "drivers/scst/scst_local/Makefile"
|
||||
else
|
||||
add_file "scst_local/in-tree/Makefile" "drivers/scst/scst_local/Makefile"
|
||||
fi
|
||||
|
||||
add_file "scst_local/scst_local.c" "drivers/scst/scst_local/scst_local.c"
|
||||
) \
|
||||
|
||||
Reference in New Issue
Block a user