diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2018-03-03 00:52:16 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2018-03-03 12:58:55 +0100 |
commit | d67b3d0df871b289f7541139b5e8c7fb561a360e (patch) | |
tree | d4329a7eaca4a9235ec16c8db75d68604dbd2946 /package/kernel/lantiq/ltq-vmmc/patches | |
parent | 58ad312755ff4a0c50fd55f758bbb2453a296380 (diff) | |
download | upstream-d67b3d0df871b289f7541139b5e8c7fb561a360e.tar.gz upstream-d67b3d0df871b289f7541139b5e8c7fb561a360e.tar.bz2 upstream-d67b3d0df871b289f7541139b5e8c7fb561a360e.zip |
lantiq: ltq-vmmc: Do not leak user space CFLAGS into kernel space
Do not leak the user space CFLAGS into the kernel space any more, this
allows us to activate the MIPS16 build.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/kernel/lantiq/ltq-vmmc/patches')
-rw-r--r-- | package/kernel/lantiq/ltq-vmmc/patches/020-not-leak-cflags.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-vmmc/patches/020-not-leak-cflags.patch b/package/kernel/lantiq/ltq-vmmc/patches/020-not-leak-cflags.patch new file mode 100644 index 0000000000..1a79daae24 --- /dev/null +++ b/package/kernel/lantiq/ltq-vmmc/patches/020-not-leak-cflags.patch @@ -0,0 +1,19 @@ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -224,7 +224,6 @@ install-exec-hook: $(bin_PROGRAMS) + + # Extra rule for linux-2.6 kernel object + if KERNEL_2_6 +-drv_vmmc_CFLAGS += -fno-common + drv_vmmc_OBJS = "$(subst .c,.o, $(drv_vmmc_SOURCES) $(nodist_drv_vmmc_SOURCES))" + + drv_vmmc.ko: $(drv_vmmc_SOURCES) $(EXTRA_DIST) +@@ -239,7 +238,7 @@ drv_vmmc.ko: $(drv_vmmc_SOURCES) $(EXTRA + @echo "# drv_vmmc: Generated to build Linux 2.6.x kernel object" > $(PWD)/Kbuild + @echo "obj-m := $(subst .ko,.o,$@)" >> $(PWD)/Kbuild + @echo "$(subst .ko,,$@)-y := $(drv_vmmc_OBJS)" >> $(PWD)/Kbuild +- @echo "EXTRA_CFLAGS := -DHAVE_CONFIG_H $(CFLAGS) $(drv_vmmc_CFLAGS) $(INCLUDES)" >> $(PWD)/Kbuild ++ @echo "EXTRA_CFLAGS := -DHAVE_CONFIG_H $(drv_vmmc_CFLAGS) $(INCLUDES)" >> $(PWD)/Kbuild + $(MAKE) ARCH=@KERNEL_ARCH@ -C @KERNEL_BUILD_PATH@ O=@KERNEL_BUILD_PATH@ M=$(PWD) modules + + clean-generic: |