summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-08-25 14:52:08 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-08-25 14:52:08 +0200
commit6625518cd6894338937a74ca6b9187b7b8167b03 (patch)
tree664091503cb8298c20636b33f29ca8b97032c46f /Rules.mak
parente3b6a036cebebeaeb85976ceff29c7833679d83d (diff)
default ?conf to native arch
Default is now the native arch, you can start a fresh .config via 'make ARCH=ia64 menuconfig'. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak5
1 files changed, 3 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index 37430bb85..39fb37840 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -63,14 +63,15 @@ STRIP_FLAGS ?= -x -R .note -R .comment
# Select the compiler needed to build binaries for your development system
HOSTCC = gcc
BUILD_CFLAGS = -Os -Wall
-export ARCH := $(shell uname -m | $(SED) -e s/i.86/i386/ \
+SUBARCH := $(shell uname -m | $(SED) -e s/i.86/i386/ \
-e s/sun.*/sparc/ -e s/sparc.*/sparc/ \
-e s/arm.*/arm/ -e s/sa110/arm/ \
-e s/sh.*/sh/ \
-e s/s390x/s390/ -e s/parisc.*/hppa/ \
-e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
-e s/xtensa.*/xtensa/ )
-
+ARCH ?= $(SUBARCH)
+export ARCH
#---------------------------------------------------------
# Nothing beyond this point should ever be touched by mere