[PATCH 1/2] kbuild: export whether we are cross compiling
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Mar 12 23:37:26 PDT 2025
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 at 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
More information about the barebox
mailing list