diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-11-05 11:34:26 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-11-05 11:34:26 +0000 |
commit | 5912acb6709e78c307f9c485b6e3f742a4b5eb1b (patch) | |
tree | c77d5929ca62c87725a745d6acdbcaecb0aebd8d | |
parent | 2685724e2374ef74669d39aa2b1f5d1ae8799450 (diff) | |
download | busybox-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.mak | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -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 |
37 | CROSS ?=$(subst ",, $(strip $(CROSS_COMPILER_PREFIX))) | 37 | CROSS =$(subst ",, $(strip $(CROSS_COMPILER_PREFIX))) |
38 | #CROSS =/usr/i386-linux-uclibc/bin/i386-uclibc- | 38 | #CROSS =/usr/i386-linux-uclibc/bin/i386-uclibc- |
39 | CC ?= $(CROSS)gcc | 39 | CC = $(CROSS)gcc |
40 | AR ?= $(CROSS)ar | 40 | AR = $(CROSS)ar |
41 | AS ?= $(CROSS)as | 41 | AS = $(CROSS)as |
42 | LD ?= $(CROSS)ld | 42 | LD = $(CROSS)ld |
43 | NM ?= $(CROSS)nm | 43 | NM = $(CROSS)nm |
44 | STRIP ?= $(CROSS)strip | 44 | STRIP = $(CROSS)strip |
45 | CPP ?= $(CC) -E | 45 | CPP = $(CC) -E |
46 | MAKEFILES = $(TOPDIR).config | 46 | MAKEFILES = $(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. |
50 | TARGET_OS?=linux | 50 | TARGET_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 |
53 | HOSTCC ?= gcc | 53 | HOSTCC = gcc |
54 | HOSTCFLAGS= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer | 54 | HOSTCFLAGS= -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 | #-------------------------------------------------------- |
88 | export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP | 88 | export VERSION BUILDTIME TOPDIR HOSTCC HOSTCFLAGS CROSS CC AR AS LD NM STRIP CPP |
89 | TARGET_ARCH?=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \ | 89 | ifeq ($(strip $(TARGET_ARCH)),) |
90 | TARGET_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 | ) |
102 | endif | ||
101 | 103 | ||
102 | # Pull in the user's busybox configuration | 104 | # Pull in the user's busybox configuration |
103 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) | 105 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |