X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=Makefile;h=f9dc25cd9b2e90715873638c46cc4890b599a1c8;hb=84336466011c589b6af554f2f2f1fcfa1a5c1437;hp=394aec712c7df254f6f9db139f80cc054eb99973;hpb=4b024242e8a4e9679fa327ea03958b89f89096c9;p=safe%2Fjmp%2Flinux-2.6 diff --git a/Makefile b/Makefile index 394aec7..f9dc25c 100644 --- a/Makefile +++ b/Makefile @@ -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 # make CROSS_COMPILE=ia64-linux- # 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 # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile export KBUILD_BUILDHOST := $(SUBARCH) ARCH ?= $(SUBARCH) CROSS_COMPILE ?= +CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%) # Architecture as present in compile.h UTS_MACHINE := $(ARCH)