author: Masahiro Yamada <masahiroy@kernel.org> 2021-04-10 23:31:58 +0900
committer: Masahiro Yamada <masahiroy@kernel.org> 2021-04-14 15:22:49 +0900
commit: f02aa48dde8b96eef5998b049ad11547bfc16080
parent: 5ee546594025fc9337e4cc8b79db89f1258cf480
Commit Summary:
Diffstat:
1 file changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f1093b972708..697eaf6c550e 100644
--- a/Makefile
+++ b/Makefile
@@ -393,6 +393,11 @@ ifeq ($(ARCH),sh64)
SRCARCH := sh
endif
+export cross_compiling :=
+ifneq ($(SRCARCH),$(SUBARCH))
+cross_compiling := 1
+endif
+
KCONFIG_CONFIG ?= .config
export KCONFIG_CONFIG