scripts/generate-kernel-patch: Download the correct kernel version

Additionally, only try to download the Linux kernel when including the
qla2x00t driver in the output.

This is a modified version of a patch supplied by Pascal de Bruijn.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7825 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-11-22 05:58:42 +00:00
parent e46b7a93fc
commit 0c1ca90007

View File

@@ -269,8 +269,6 @@ do
fi
done
download_kernel "${kver}" || exit $?
# General kernel patches.
scsi_exec_req_fifo_defined=0
@@ -499,6 +497,8 @@ add_file "iscsi-scst/README_in-tree" "Documentation/scst/README.iscsi" \
if [ "${qla2x00t}" = "true" ]; then
download_kernel "${kver3}" || exit $?
( cd qla2x00t && ./generate-in-tree-patches "$1" )
for f in qla2x00t/in-tree-patches/"$1"/*.patch; do