mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 12:11:26 +00:00
Patch from Bart Van Assche <bart.vanassche@gmail.com>:
The patch below contains a script that removes C preprocessor tests on the LINUX_VERSION_CODE macro, depending on the kernel version that was passed as an argument to that script. Furthermore, the generate-kernel-patch script has been modified such that its output is filtered by the specialize-patch script. This eliminates another class of checkpatch errors. Note: due to the way the specialize-patch script is implemented, #if 0 and #if 1 statements are also processed. The patch below has been verified as follows: - Checked that checkpatch does no longer complain about LINUX_VERSION_CODE on the generated patch. - Checked that the generated kernel patch applies cleanly to the 2.6.25.4 kernel. - Checked that the patched kernel compiles and installs cleanly, and that after reboot it was possible to load the iscsi-scst and ib_srpt kernel modules. I will wait with sending more patches until this and the previous two patches have been reviewed and/or applied. Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@384 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -103,6 +103,16 @@ do
|
||||
done
|
||||
|
||||
|
||||
# Redirect the output of all subsequent commands to the specialize-patch script
|
||||
|
||||
trap "rm -f ${fifo}" EXIT
|
||||
fifo=/tmp/generate-kernel-patch-fifo.$$
|
||||
rm -f "${fifo}"
|
||||
mkfifo "${fifo}"
|
||||
"$(dirname $0)/specialize-patch" -v kernel_version="${kernel_version}" \
|
||||
< "${fifo}" &
|
||||
exec >"${fifo}"
|
||||
|
||||
# General kernel patches.
|
||||
|
||||
cat "${kpatch[@]}"
|
||||
|
||||
Reference in New Issue
Block a user