diff --git a/srpt/patches/kernel-2.6.32-pre-cflags.patch b/srpt/patches/kernel-2.6.32-pre-cflags.patch new file mode 100644 index 000000000..2c782c124 --- /dev/null +++ b/srpt/patches/kernel-2.6.32-pre-cflags.patch @@ -0,0 +1,14 @@ +diff --git a/Makefile b/Makefile +index 8392b64..f5991d9 100644 +--- a/Makefile ++++ b/Makefile +@@ -349,7 +349,8 @@ CFLAGS_GCOV = -fprofile-arcs -ftest-coverage + + # Use LINUXINCLUDE when you must reference the include/ directory. + # Needed to be compatible with the O= option +-LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include -Iinclude \ ++LINUXINCLUDE := $(PRE_CFLAGS) \ ++ -I$(srctree)/arch/$(hdr-arch)/include -Iinclude \ + $(if $(KBUILD_SRC), -I$(srctree)/include) \ + -include include/generated/autoconf.h +