From 273430aa8d3ca6946bf12267320375dcb4945256 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 4 Jul 2006 08:26:55 +0000 Subject: - Pull r15593: Rename to CROSS_COMPILE and move its configuration to .config.mak. (Shaun Jackman) --- Rules.mak | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'Rules.mak') diff --git a/Rules.mak b/Rules.mak index 61f056661..58a4c3e70 100644 --- a/Rules.mak +++ b/Rules.mak @@ -24,22 +24,20 @@ BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z") # With a modern GNU make(1) (highly recommended, that's what all the # developers use), all of the following configuration values can be # overridden at the command line. For example: -# make CROSS=powerpc-linux- top_srcdir="$HOME/busybox" PREFIX=/mnt/app +# make CROSS_COMPILE=powerpc-linux- top_srcdir="$HOME/busybox" PREFIX=/mnt/app #-------------------------------------------------------- -# If you are running a cross compiler, you will want to set 'CROSS' +# If you are running a cross compiler, you will want to set CROSS_COMPILE # to something more interesting... Target architecture is determined # by asking the CC compiler what arch it compiles things for, so unless # your compiler is broken, you should not need to specify TARGET_ARCH -CROSS =$(strip $(subst ",, $(strip $(CROSS_COMPILER_PREFIX)))) -# be gentle to vi coloring.. ")) -CC = $(CROSS)gcc -AR = $(CROSS)ar -AS = $(CROSS)as -LD = $(CROSS)ld -NM = $(CROSS)nm -STRIP = $(CROSS)strip -ELF2FLT = $(CROSS)elf2flt +CC = $(CROSS_COMPILE)gcc +AR = $(CROSS_COMPILE)ar +AS = $(CROSS_COMPILE)as +LD = $(CROSS_COMPILE)ld +NM = $(CROSS_COMPILE)nm +STRIP = $(CROSS_COMPILE)strip +ELF2FLT = $(CROSS_COMPILE)elf2flt CPP = $(CC) -E SED ?= sed BZIP2 ?= bzip2 @@ -64,7 +62,7 @@ CC_MAJOR:=$(shell printf "%02d" $(shell echo __GNUC__ | $(CC) -E -xc - | tail -n CC_MINOR:=$(shell printf "%02d" $(shell echo __GNUC_MINOR__ | $(CC) -E -xc - | tail -n 1)) #-------------------------------------------------------- -export VERSION BUILDTIME HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP +export VERSION BUILDTIME HOSTCC HOSTCFLAGS CROSS_COMPILE CC AR AS LD NM STRIP CPP ifeq ($(strip $(TARGET_ARCH)),) TARGET_ARCH:=$(shell $(CC) -dumpmachine | $(SED) -e s'/-.*//' \ -e 's/i.86/i386/' \ -- cgit v1.2.3