diff --git a/scripts/specialize-patch b/scripts/specialize-patch index e75c60c46..40563a6fa 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -148,7 +148,7 @@ function evaluate(stmnt, pattern, arg, op, result) { gsub("defined\\(HAVE_IB_DMA_MAP_OPS\\)", "(LINUX_VERSION_CODE >= KERNEL_VERSION(0, 0, 0))", stmnt) - gsub("defined\\(HAVE_IB_SG_DMA_LEN\\)", + gsub("HAVE_IB_SG_DMA_LEN", "(LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0))", stmnt) gsub("defined(ENABLE_NPIV)", 0, stmnt) diff --git a/scst/kernel/in-tree/Makefile.drivers.Linux-5.4.patch b/scst/kernel/in-tree/Makefile.drivers.Linux-5.4.patch new file mode 100644 index 000000000..26831e87c --- /dev/null +++ b/scst/kernel/in-tree/Makefile.drivers.Linux-5.4.patch @@ -0,0 +1,11 @@ +diff -Naur linux-5.4.6.orig/drivers/Makefile linux-5.4.6/drivers/Makefile +--- linux-5.4.6.orig/drivers/Makefile 2019-12-21 11:05:23.000000000 +0100 ++++ linux-5.4.6/drivers/Makefile 2019-12-22 17:57:42.265448215 +0100 +@@ -146,6 +146,7 @@ + obj-$(CONFIG_VHOST_RING) += vhost/ + obj-$(CONFIG_VHOST) += vhost/ + obj-$(CONFIG_VLYNQ) += vlynq/ ++obj-$(CONFIG_SCST) += scst/ + obj-$(CONFIG_GREYBUS) += greybus/ + obj-$(CONFIG_STAGING) += staging/ + obj-y += platform/