diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | init/Kconfig | 8 |
2 files changed, 11 insertions, 0 deletions
@@ -183,11 +183,14 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ | |||
183 | # CROSS_COMPILE can be set on the command line | 183 | # CROSS_COMPILE can be set on the command line |
184 | # make CROSS_COMPILE=ia64-linux- | 184 | # make CROSS_COMPILE=ia64-linux- |
185 | # Alternatively CROSS_COMPILE can be set in the environment. | 185 | # Alternatively CROSS_COMPILE can be set in the environment. |
186 | # A third alternative is to store a setting in .config so that plain | ||
187 | # "make" in the configured kernel build directory always uses that. | ||
186 | # Default value for CROSS_COMPILE is not to prefix executables | 188 | # Default value for CROSS_COMPILE is not to prefix executables |
187 | # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile | 189 | # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile |
188 | export KBUILD_BUILDHOST := $(SUBARCH) | 190 | export KBUILD_BUILDHOST := $(SUBARCH) |
189 | ARCH ?= $(SUBARCH) | 191 | ARCH ?= $(SUBARCH) |
190 | CROSS_COMPILE ?= | 192 | CROSS_COMPILE ?= |
193 | CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%) | ||
191 | 194 | ||
192 | # Architecture as present in compile.h | 195 | # Architecture as present in compile.h |
193 | UTS_MACHINE := $(ARCH) | 196 | UTS_MACHINE := $(ARCH) |
diff --git a/init/Kconfig b/init/Kconfig index d95ca7cd5d45..313506d8be6e 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -76,6 +76,14 @@ config INIT_ENV_ARG_LIMIT | |||
76 | variables passed to init from the kernel command line. | 76 | variables passed to init from the kernel command line. |
77 | 77 | ||
78 | 78 | ||
79 | config CROSS_COMPILE | ||
80 | string "Cross-compiler tool prefix" | ||
81 | help | ||
82 | Same as running 'make CROSS_COMPILE=prefix-' but stored for | ||
83 | default make runs in this kernel build directory. You don't | ||
84 | need to set this unless you want the configured kernel build | ||
85 | directory to select the cross-compiler automatically. | ||
86 | |||
79 | config LOCALVERSION | 87 | config LOCALVERSION |
80 | string "Local version - append to kernel release" | 88 | string "Local version - append to kernel release" |
81 | help | 89 | help |