diff options
Diffstat (limited to 'main/open-iscsi-grsec/Makefile-Alpine-kernels-support.patch')
-rw-r--r-- | main/open-iscsi-grsec/Makefile-Alpine-kernels-support.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/main/open-iscsi-grsec/Makefile-Alpine-kernels-support.patch b/main/open-iscsi-grsec/Makefile-Alpine-kernels-support.patch new file mode 100644 index 0000000000..166cc72e44 --- /dev/null +++ b/main/open-iscsi-grsec/Makefile-Alpine-kernels-support.patch @@ -0,0 +1,33 @@ +--- a/kernel/Makefile ++++ b/kernel/Makefile +@@ -63,11 +63,19 @@ + # check to see if code is unpatched + unpatch_code=$(shell test -e $(cur_patched) && echo do_unpatch_code ) + ++KVERSION = $(shell cat $(KSRC)/Makefile | awk -F= '/^VERSION =/ {print $$2}' | \ ++ sed 's/^[ \t]*//;s/[ \t]*$$//') ++ ++KPATCHLEVEL = $(shell cat $(KSRC)/Makefile | awk -F= '/^PATCHLEVEL =/ {print $$2}' | \ ++ sed 's/^[ \t]*//;s/[ \t]*$$//') ++ + KSUBLEVEL = $(shell cat $(KSRC)/Makefile | awk -F= '/^SUBLEVEL =/ {print $$2}' | \ + sed 's/^[ \t]*//;s/[ \t]*$$//') + ++linux_2_6_38: $(unpatch_code) + +-KERNEL_TARGET=linux_2_6_$(KSUBLEVEL) ++ ++KERNEL_TARGET=linux_$(KVERSION)_$(KPATCHLEVEL)_$(KSUBLEVEL) + kernel_check: $(KERNEL_TARGET) + + linux_2_6_14: has_14to23_patch +@@ -113,6 +121,8 @@ + linux_2_6_34: has_33to34_patch + + linux_2_6_35: $(unpatch_code) ++ ++linux_3_0_4: $(unpatch_code) + + do_unpatch_code: + echo "Un-patching source code for use with linux-2.6.14 and up ..." +Only in b: kernel/Makefile.orig |