mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] kbuild: export whether we are cross compiling
@ 2025-03-13  6:37 Ahmad Fatoum
  2025-03-13  6:37 ` [PATCH 2/2] kbuild: override host system KCONFIG_DEFCONFIG_LIST Ahmad Fatoum
  2025-03-13 11:41 ` [PATCH 1/2] kbuild: export whether we are cross compiling Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2025-03-13  6:37 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

scripts/kconfig makes use of this variable to inform whether the local
system's config should be used when no config exists.

Set it in barebox like Linux does.

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

diff --git a/Makefile b/Makefile
index 9ef07ba34457..760fd7381ece 100644
--- a/Makefile
+++ b/Makefile
@@ -368,6 +368,11 @@ ifeq ($(ARCH),um)
        SRCARCH := sandbox
 endif
 
+export cross_compiling :=
+ifneq ($(SRCARCH),$(SUBARCH))
+cross_compiling := 1
+endif
+
 KCONFIG_CONFIG	?= .config
 
 PKG_CONFIG ?= pkg-config
-- 
2.39.5




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

end of thread, other threads:[~2025-03-13 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-13  6:37 [PATCH 1/2] kbuild: export whether we are cross compiling Ahmad Fatoum
2025-03-13  6:37 ` [PATCH 2/2] kbuild: override host system KCONFIG_DEFCONFIG_LIST Ahmad Fatoum
2025-03-13 11:41 ` [PATCH 1/2] kbuild: export whether we are cross compiling Sascha Hauer

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