011-kbuild-export-SUBARCH.patch 923 B

1234567891011121314151617181920212223
  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. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  6. ---
  7. Makefile | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9. --- a/Makefile
  10. +++ b/Makefile
  11. @@ -428,8 +428,8 @@ KBUILD_CFLAGS_MODULE := -DMODULE
  12. KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
  13. GCC_PLUGINS_CFLAGS :=
  14. -export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC
  15. -export CPP AR NM STRIP OBJCOPY OBJDUMP HOSTLDFLAGS HOST_LOADLIBES
  16. +export ARCH SRCARCH SUBARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD
  17. +export CC CPP AR NM STRIP OBJCOPY OBJDUMP HOSTLDFLAGS HOST_LOADLIBES
  18. export MAKE AWK GENKSYMS INSTALLKERNEL PERL PYTHON UTS_MACHINE
  19. export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS