|
@@ -30,24 +30,24 @@ endif
|
|
|
|
|
|
#-----------------------------------------------------------
|
|
#-----------------------------------------------------------
|
|
# If you are running a cross compiler, you will want to set
|
|
# If you are running a cross compiler, you will want to set
|
|
-# 'CROSS' to something more interesting ... Target
|
|
+# 'CROSS_COMPILE' to something more interesting ... Target
|
|
# architecture is determined by asking the CC compiler what
|
|
# architecture is determined by asking the CC compiler what
|
|
# arch it compiles things for, so unless your compiler is
|
|
# arch it compiles things for, so unless your compiler is
|
|
# broken, you should not need to specify TARGET_ARCH.
|
|
# broken, you should not need to specify TARGET_ARCH.
|
|
#
|
|
#
|
|
# Most people will set this stuff on the command line, i.e.
|
|
# Most people will set this stuff on the command line, i.e.
|
|
-# make CROSS=arm-linux-
|
|
+# make CROSS_COMPILE=arm-linux-
|
|
# will build uClibc for 'arm'.
|
|
# will build uClibc for 'arm'.
|
|
|
|
+# CROSS is still supported for backward compatibily only
|
|
|
|
|
|
-ifndef CROSS
|
|
+CROSS_COMPILE ?= $(CROSS)
|
|
-CROSS=
|
|
+
|
|
-endif
|
|
+CC = $(CROSS_COMPILE)gcc
|
|
-CC = $(CROSS)gcc
|
|
+AR = $(CROSS_COMPILE)ar
|
|
-AR = $(CROSS)ar
|
|
+LD = $(CROSS_COMPILE)ld
|
|
-LD = $(CROSS)ld
|
|
+NM = $(CROSS_COMPILE)nm
|
|
-NM = $(CROSS)nm
|
|
+OBJDUMP = $(CROSS_COMPILE)objdump
|
|
-OBJDUMP = $(CROSS)objdump
|
|
+STRIPTOOL = $(CROSS_COMPILE)strip
|
|
-STRIPTOOL = $(CROSS)strip
|
|
|
|
|
|
|
|
INSTALL = install
|
|
INSTALL = install
|
|
LN = ln
|
|
LN = ln
|
|
@@ -159,8 +159,8 @@ endif
|
|
comma:=,
|
|
comma:=,
|
|
space:= #
|
|
space:= #
|
|
|
|
|
|
-ifndef CROSS
|
|
+ifndef CROSS_COMPILE
|
|
-CROSS=$(call qstrip,$(CROSS_COMPILER_PREFIX))
|
|
+CROSS_COMPILE=$(call qstrip,$(CROSS_COMPILER_PREFIX))
|
|
endif
|
|
endif
|
|
|
|
|
|
# A nifty macro to make testing gcc features easier
|
|
# A nifty macro to make testing gcc features easier
|