DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Oleksij Rempel <o.rempel@pengutronix.de>,
	Michael Olbrich <m.olbrich@pengutronix.de>
Subject: [DistroKit] [PATCH] MIPS: kernel: keep the config files stable
Date: Fri, 24 Apr 2020 13:18:57 +0200	[thread overview]
Message-ID: <20200424111857.16749-1-m.olbrich@pengutronix.de> (raw)

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

             reply	other threads:[~2020-04-24 11:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-24 11:18 Michael Olbrich [this message]
2020-05-08 16:46 ` Robert Schwebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200424111857.16749-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    --cc=o.rempel@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox