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 <[email protected]>
---
 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


Reply via email to