aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-05 11:34:26 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-05 11:34:26 +0000
commit5912acb6709e78c307f9c485b6e3f742a4b5eb1b (patch)
treec77d5929ca62c87725a745d6acdbcaecb0aebd8d
parent2685724e2374ef74669d39aa2b1f5d1ae8799450 (diff)
downloadbusybox-w32-5912acb6709e78c307f9c485b6e3f742a4b5eb1b.tar.gz
busybox-w32-5912acb6709e78c307f9c485b6e3f742a4b5eb1b.tar.bz2
busybox-w32-5912acb6709e78c307f9c485b6e3f742a4b5eb1b.zip
By popular demand, revert to version 1.21, since Rules.mak:1.22
causes the build to ignore CROSS_COMPILER_PREFIX set in .config
-rw-r--r--Rules.mak24
1 files changed, 13 insertions, 11 deletions
diff --git a/Rules.mak b/Rules.mak
index 3ee323527..dfc2777ef 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -34,23 +34,23 @@ BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z")
34# to something more interesting... Target architecture is determined 34# to something more interesting... Target architecture is determined
35# by asking the CC compiler what arch it compiles things for, so unless 35# by asking the CC compiler what arch it compiles things for, so unless
36# your compiler is broken, you should not need to specify TARGET_ARCH 36# your compiler is broken, you should not need to specify TARGET_ARCH
37CROSS ?=$(subst ",, $(strip $(CROSS_COMPILER_PREFIX))) 37CROSS =$(subst ",, $(strip $(CROSS_COMPILER_PREFIX)))
38#CROSS =/usr/i386-linux-uclibc/bin/i386-uclibc- 38#CROSS =/usr/i386-linux-uclibc/bin/i386-uclibc-
39CC ?= $(CROSS)gcc 39CC = $(CROSS)gcc
40AR ?= $(CROSS)ar 40AR = $(CROSS)ar
41AS ?= $(CROSS)as 41AS = $(CROSS)as
42LD ?= $(CROSS)ld 42LD = $(CROSS)ld
43NM ?= $(CROSS)nm 43NM = $(CROSS)nm
44STRIP ?= $(CROSS)strip 44STRIP = $(CROSS)strip
45CPP ?= $(CC) -E 45CPP = $(CC) -E
46MAKEFILES = $(TOPDIR).config 46MAKEFILES = $(TOPDIR).config
47 47
48# What OS are you compiling busybox for? This allows you to include 48# What OS are you compiling busybox for? This allows you to include
49# OS specific things, syscall overrides, etc. 49# OS specific things, syscall overrides, etc.
50TARGET_OS?=linux 50TARGET_OS=linux
51 51
52# Select the compiler needed to build binaries for your development system 52# Select the compiler needed to build binaries for your development system
53HOSTCC ?= gcc 53HOSTCC = gcc
54HOSTCFLAGS= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer 54HOSTCFLAGS= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
55 55
56# Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc. 56# Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc.
@@ -86,7 +86,8 @@ ARFLAGS=-r
86 86
87#-------------------------------------------------------- 87#--------------------------------------------------------
88export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP 88export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP
89TARGET_ARCH?=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \ 89ifeq ($(strip $(TARGET_ARCH)),)
90TARGET_ARCH=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \
90 -e 's/i.86/i386/' \ 91 -e 's/i.86/i386/' \
91 -e 's/sparc.*/sparc/' \ 92 -e 's/sparc.*/sparc/' \
92 -e 's/arm.*/arm/g' \ 93 -e 's/arm.*/arm/g' \
@@ -98,6 +99,7 @@ TARGET_ARCH?=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \
98 -e 's/mipsel-.*/mipsel/' \ 99 -e 's/mipsel-.*/mipsel/' \
99 -e 's/cris.*/cris/' \ 100 -e 's/cris.*/cris/' \
100 ) 101 )
102endif
101 103
102# Pull in the user's busybox configuration 104# Pull in the user's busybox configuration
103ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) 105ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)