diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-04-24 13:18:57 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2020-04-24 14:22:33 +0200 |
commit | a3ecb0bcb8dac7081e0f9986b9ad6bed322f6c02 (patch) | |
tree | db6944025cdc2bdb0db3cc91ea5e68adc5b50b54 /configs | |
parent | 5f441ceb5d9d1dd8c3071b81fd31b3b61d9d71df (diff) | |
download | DistroKit-a3ecb0bcb8dac7081e0f9986b9ad6bed322f6c02.tar.gz DistroKit-a3ecb0bcb8dac7081e0f9986b9ad6bed322f6c02.tar.xz |
MIPS: kernel: keep the config files stable
This is basically the same as the ptxdist upstream commit
c065184961ab1973c304ee31347205569b4f7536 ("kernel: add workaround to keep
kernelconfigs stable")
With linux-4.19 and gcc-8.x oldconfig will prompt for extra options that
are not available with e.g. gcc-7.x. This causes problems when a BSP is
built with different host compilers.
Add a workaround to optionally disable these extra options by forcing the
compiler check to fail.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'configs')
-rw-r--r-- | configs/platform-mips/rules/kernel-ar9331.make | 4 | ||||
-rw-r--r-- | configs/platform-mips/rules/kernel-malta.make | 4 | ||||
-rw-r--r-- | configs/platform-mips/rules/kernel.make | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/configs/platform-mips/rules/kernel-ar9331.make b/configs/platform-mips/rules/kernel-ar9331.make index fd594ca..bb7ddbc 100644 --- a/configs/platform-mips/rules/kernel-ar9331.make +++ b/configs/platform-mips/rules/kernel-ar9331.make @@ -41,6 +41,10 @@ KERNEL_AR9331_CONF_OPT := \ O=$(KERNEL_AR9331_BUILD_DIR) \ $(call kernel-opts, KERNEL_AR9331) +# no gcc plugins; avoid config changes depending on the host compiler +KERNEL_AR9331_CONF_OPT += \ + HOSTCXX=false + KERNEL_AR9331_IMAGES := vmlinuz KERNEL_AR9331_IMAGES := $(addprefix $(KERNEL_AR9331_BUILD_DIR)/,$(KERNEL_AR9331_IMAGES)) diff --git a/configs/platform-mips/rules/kernel-malta.make b/configs/platform-mips/rules/kernel-malta.make index e43311b..0450e04 100644 --- a/configs/platform-mips/rules/kernel-malta.make +++ b/configs/platform-mips/rules/kernel-malta.make @@ -41,6 +41,10 @@ KERNEL_MALTA_CONF_OPT := \ O=$(KERNEL_MALTA_BUILD_DIR) \ $(call kernel-opts, KERNEL_MALTA) +# no gcc plugins; avoid config changes depending on the host compiler +KERNEL_MALTA_CONF_OPT += \ + HOSTCXX=false + KERNEL_MALTA_IMAGES := vmlinuz KERNEL_MALTA_IMAGES := $(addprefix $(KERNEL_MALTA_BUILD_DIR)/,$(KERNEL_MALTA_IMAGES)) diff --git a/configs/platform-mips/rules/kernel.make b/configs/platform-mips/rules/kernel.make index 26187a8..a9eb0f2 100644 --- a/configs/platform-mips/rules/kernel.make +++ b/configs/platform-mips/rules/kernel.make @@ -41,6 +41,10 @@ KERNEL_CONF_OPT := \ O=$(KERNEL_BUILD_DIR) \ $(call kernel-opts, KERNEL) +# no gcc plugins; avoid config changes depending on the host compiler +KERNEL_CONF_OPT += \ + HOSTCXX=false + ifdef PTXCONF_KERNEL $(KERNEL_CONFIG): @echo |