aboutsummaryrefslogtreecommitdiff
path: root/make.rules
diff options
context:
space:
mode:
Diffstat (limited to 'make.rules')
-rw-r--r--make.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/make.rules b/make.rules
index dae1572..aebc4e3 100644
--- a/make.rules
+++ b/make.rules
@@ -16,7 +16,14 @@
# CROSS is the prefix of your cross-compiler.
# You can override this variable in your environment (export CROSS=...).
+ARCH := $(shell uname -p)
+
+# Auto-detect ppc64
+ifeq ($(ARCH), ppc64)
+CROSS = ""
+else
CROSS ?= powerpc64-linux-
+endif
CELLSIZE ?= 64