aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-08 13:25:20 +0000
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-08 13:25:20 +0000
commit2af860464eadc7f9606efe1e2876c9170d1cb40d (patch)
treea561192aa594f54269c72cbdb6d81a2ac4f56807
parent62538804506061d80ac73b49df43285922fbdaef (diff)
downloadbusybox-2af860464eadc7f9606efe1e2876c9170d1cb40d.tar.gz
busybox-2af860464eadc7f9606efe1e2876c9170d1cb40d.tar.bz2
- forgot to pull in arch-specific tweaks
-rw-r--r--scripts/Makefile.IMA9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/Makefile.IMA b/scripts/Makefile.IMA
index 29399178e..353a4ac1b 100644
--- a/scripts/Makefile.IMA
+++ b/scripts/Makefile.IMA
@@ -32,6 +32,15 @@ include .config
include $(srctree)/scripts/Kbuild.include
include Makefile.flags
+
+SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
+ -e s/arm.*/arm/ -e s/sa110/arm/ \
+ -e s/s390x/s390/ -e s/parisc64/parisc/ \
+ -e s/ppc.*/powerpc/ -e s/mips.*/mips/ )
+ARCH ?= $(SUBARCH)
+
+# Cross compiling and selecting different set of gcc/bin-utils
+-include $(srctree)/arch/$(ARCH)/Makefile
ifdef CONFIG_FEATURE_COMPRESS_USAGE
usage_stuff = include/usage_compressed.h
endif