|
@@ -183,11 +183,14 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
|
|
# CROSS_COMPILE can be set on the command line
|
|
# CROSS_COMPILE can be set on the command line
|
|
# make CROSS_COMPILE=ia64-linux-
|
|
# make CROSS_COMPILE=ia64-linux-
|
|
# Alternatively CROSS_COMPILE can be set in the environment.
|
|
# Alternatively CROSS_COMPILE can be set in the environment.
|
|
|
|
+# A third alternative is to store a setting in .config so that plain
|
|
|
|
+# "make" in the configured kernel build directory always uses that.
|
|
# Default value for CROSS_COMPILE is not to prefix executables
|
|
# Default value for CROSS_COMPILE is not to prefix executables
|
|
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
|
|
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
|
|
export KBUILD_BUILDHOST := $(SUBARCH)
|
|
export KBUILD_BUILDHOST := $(SUBARCH)
|
|
ARCH ?= $(SUBARCH)
|
|
ARCH ?= $(SUBARCH)
|
|
CROSS_COMPILE ?=
|
|
CROSS_COMPILE ?=
|
|
|
|
+CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)
|
|
|
|
|
|
# Architecture as present in compile.h
|
|
# Architecture as present in compile.h
|
|
UTS_MACHINE := $(ARCH)
|
|
UTS_MACHINE := $(ARCH)
|