kernel: add compile fix for linux 4.9 on x86
authorFelix Fietkau <nbd@nbd.name>
Mon, 6 Feb 2017 09:35:19 +0000 (10:35 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 6 Feb 2017 10:56:57 +0000 (11:56 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/generic/patches-4.9/011-kbuild-export-SUBARCH.patch [new file with mode: 0644]

diff --git a/target/linux/generic/patches-4.9/011-kbuild-export-SUBARCH.patch b/target/linux/generic/patches-4.9/011-kbuild-export-SUBARCH.patch
new file mode 100644 (file)
index 0000000..8a5af88
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/Makefile
++++ b/Makefile
+@@ -414,8 +414,8 @@ KERNELRELEASE = $(shell cat include/conf
+ KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
+ export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
+-export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC
+-export CPP AR NM STRIP OBJCOPY OBJDUMP
++export ARCH SRCARCH SUBARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD
++export CC CPP AR NM STRIP OBJCOPY OBJDUMP
+ export MAKE AWK GENKSYMS INSTALLKERNEL PERL PYTHON UTS_MACHINE
+ export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS