DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH] MIPS: kernel: keep the config files stable
@ 2020-04-24 11:18 Michael Olbrich
  2020-05-08 16:46 ` Robert Schwebel
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Olbrich @ 2020-04-24 11:18 UTC (permalink / raw)
  To: distrokit; +Cc: Oleksij Rempel, Michael Olbrich

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>
---
 configs/platform-mips/rules/kernel-ar9331.make | 4 ++++
 configs/platform-mips/rules/kernel-malta.make  | 4 ++++
 configs/platform-mips/rules/kernel.make        | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/configs/platform-mips/rules/kernel-ar9331.make b/configs/platform-mips/rules/kernel-ar9331.make
index fd594ca4ae2b..bb7ddbc25c94 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 e43311b2cfd3..0450e04ce690 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 26187a83a7a4..a9eb0f207a80 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
-- 
2.20.1


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-08 16:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24 11:18 [DistroKit] [PATCH] MIPS: kernel: keep the config files stable Michael Olbrich
2020-05-08 16:46 ` Robert Schwebel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox