summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index f83e533e0..d4da86274 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -66,6 +66,9 @@ CROSS = #powerpc-linux-
CC = $(CROSS)gcc
STRIPTOOL = $(CROSS)strip
+# Figure out what arch to build...
+ARCH = $(shell uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/' -e 's/arm.*/arm/g')
+
#--------------------------------------------------------
# Nothing beyond this point should need be touched by mere