mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
When converting the SCST source code into a series of upstream patches, SCST
is built via the kbuild infastructure. In kernel version 2.6.24 (commit f77bf01425b11947eeb3b5b54685212c302741b8) the kbuild variable ccflags-y has been introduced and the use of EXTRA_CFLAGS in kbuild makefiles has been deprecated. The patch below converts SCST's in-tree makefiles such that these use ccflags-y instead of EXTRA_CFLAGS when generating kernel patches for kernel 2.6.24 or later. Additionally, this patch removes the "default n" from the file scst/kernel/in-tree/Kconfig.scst since this statement is superfluous. The patch below has been tested by verifying the output of the following command: for ((v=23;v<=32;v++)); do rm -rf re* && scripts/run-regression-tests 2.6.$v; done Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -278,7 +278,7 @@ add_patch "scst/kernel/in-tree/Makefile.drivers.Linux-${kernel_version}.patch"\
|
||||
(
|
||||
add_file "scst/kernel/in-tree/Kconfig.scst" "drivers/scst/Kconfig"
|
||||
|
||||
add_file "scst/kernel/in-tree/Makefile.scst" "drivers/scst/Makefile"
|
||||
add_file "scst/kernel/in-tree/Makefile.scst-${kernel_version}" "drivers/scst/Makefile"
|
||||
|
||||
for f in $(ls scst/src/*.[ch] 2>/dev/null)
|
||||
do
|
||||
@@ -319,7 +319,7 @@ add_file "scst/README_in-tree" "Documentation/scst/README.scst" \
|
||||
# Directory drivers/scst/dev_handlers/
|
||||
|
||||
(
|
||||
add_file "scst/kernel/in-tree/Makefile.dev_handlers" \
|
||||
add_file "scst/kernel/in-tree/Makefile.dev_handlers-${kernel_version}" \
|
||||
"drivers/scst/dev_handlers/Makefile" \
|
||||
| process_patch "dev_handlers_makefile.diff"
|
||||
|
||||
@@ -383,7 +383,7 @@ 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" \
|
||||
add_file "qla2x00t/qla2x00-target/Makefile_in-tree-${kernel_version}" \
|
||||
"drivers/scst/qla2xxx-target/Makefile"
|
||||
|
||||
add_file "qla2x00t/qla2x00-target/Kconfig" \
|
||||
@@ -462,7 +462,7 @@ fi
|
||||
(
|
||||
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/in-tree/Makefile-${kernel_version}" "drivers/scst/scst_local/Makefile"
|
||||
|
||||
add_file "scst_local/scst_local.c" "drivers/scst/scst_local/scst_local.c"
|
||||
) \
|
||||
|
||||
Reference in New Issue
Block a user