diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 431afb15c..28d2bd596 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -262,7 +262,9 @@ done scsi_exec_req_fifo_defined=0 scst_io_context=0 for p in scst/kernel/*-${kver}.patch \ - iscsi-scst/kernel/patches/*-${kver}.patch + $(if [ ${kver} = 3.7 ] && [ "$1" = "3.7.10" -o "$1" ">" "3.7.10" ]; + then echo iscsi-scst/kernel/patches/*-3.7.10.patch; + else echo iscsi-scst/kernel/patches/*-${kver}.patch; fi) do # Exclude the put_page_callback patch when command-line option -u has been # specified since the current approach is not considered acceptable for