author: Linus Torvalds <torvalds@linux-foundation.org> 2021-04-29 14:32:00 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-04-29 14:32:00 -0700
commit: 8ca5297e7e38f2dc8c753d33a5092e7be181fff0
parent: b0030af53a74a08c77ea11d3888da21542af2d0e
Commit Summary:
Diffstat:
1 file changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9bf8df1b085b..6eafedd7efc6 100644
--- a/Makefile
+++ b/Makefile
@@ -404,12 +404,14 @@ ifeq ($(ARCH),sh64)
SRCARCH := sh
endif
+export cross_compiling :=
+ifneq ($(SRCARCH),$(SUBARCH))
+cross_compiling := 1
+endif
+
KCONFIG_CONFIG ?= .config
export KCONFIG_CONFIG
-# Default file for 'make defconfig'. This may be overridden by arch-Makefile.
-export KBUILD_DEFCONFIG := defconfig
-
# SHELL used by kbuild
CONFIG_SHELL := sh