kernel: bump 4.9 to 4.9.161
[openwrt/openwrt.git] / target / linux / generic / backport-4.9 / 011-kbuild-export-SUBARCH.patch
1 From 173019b66dcc9d68ad9333aa744dad1e369b5aa8 Mon Sep 17 00:00:00 2001
2 From: Felix Fietkau <nbd@nbd.name>
3 Date: Sun, 9 Jul 2017 00:26:53 +0200
4 Subject: [PATCH 34/34] kernel: add compile fix for linux 4.9 on x86
5
6 Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 ---
8 Makefile | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 --- a/Makefile
12 +++ b/Makefile
13 @@ -406,8 +406,8 @@ KERNELRELEASE = $(shell cat include/conf
14 KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
15
16 export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
17 -export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC
18 -export CPP AR NM STRIP OBJCOPY OBJDUMP
19 +export ARCH SRCARCH SUBARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD
20 +export CC CPP AR NM STRIP OBJCOPY OBJDUMP
21 export MAKE AWK GENKSYMS INSTALLKERNEL PERL PYTHON UTS_MACHINE
22 export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS
23