mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 2/2] kbuild: override host system KCONFIG_DEFCONFIG_LIST
Date: Thu, 13 Mar 2025 07:37:27 +0100	[thread overview]
Message-ID: <20250313063727.70946-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250313063727.70946-1-a.fatoum@pengutronix.de>

KCONFIG_DEFCONFIG_LIST contains some default locations where a Kernel
config can be found (e.g. /boot/config-$(uname -r)).

Currently, if a config is found in these default locations, it's used as
initial config for barebox as well, which doesn't work well, because
barebox architecture symbols defer quite a bit from the Linux ones.

Let's therefore set the make variable to an empty string to avoid this
issue.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 760fd7381ece..5433927ed197 100644
--- a/Makefile
+++ b/Makefile
@@ -602,10 +602,10 @@ include $(srctree)/arch/$(SRCARCH)/Makefile
 export KBUILD_DEFCONFIG CC_VERSION_TEXT
 
 config: outputmakefile scripts_basic FORCE
-	$(Q)$(MAKE) $(build)=scripts/kconfig $@
+	$(Q)$(MAKE) $(build)=scripts/kconfig KCONFIG_DEFCONFIG_LIST= $@
 
 %config: outputmakefile scripts_basic FORCE
-	$(Q)$(MAKE) $(build)=scripts/kconfig $@
+	$(Q)$(MAKE) $(build)=scripts/kconfig KCONFIG_DEFCONFIG_LIST= $@
 
 else #!config-build
 # ===========================================================================
-- 
2.39.5




  reply	other threads:[~2025-03-13  6:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-13  6:37 [PATCH 1/2] kbuild: export whether we are cross compiling Ahmad Fatoum
2025-03-13  6:37 ` Ahmad Fatoum [this message]
2025-03-13 11:41 ` Sascha Hauer

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=20250313063727.70946-2-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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