aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWei Yang <weiyang@linux.vnet.ibm.com>2014-12-02 14:24:16 +0800
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-12-02 17:41:47 +1100
commitdb089242bda7a5e3805b1e02da06f81e6075ba8a (patch)
tree5f34b6cbf4214f5ca29c74ce13b4dbca941f1453 /Makefile
parent7f4d2121217d562f541e8c4b008141d9880a9f6d (diff)
downloadskiboot-db089242bda7a5e3805b1e02da06f81e6075ba8a.zip
skiboot-db089242bda7a5e3805b1e02da06f81e6075ba8a.tar.gz
skiboot-db089242bda7a5e3805b1e02da06f81e6075ba8a.tar.bz2
Makefile: set CROSS based on arch
CROSS is used to do the cross compile of skiboot on other platform, while this variable is not necessary on ppc64. When this is set on ppc64, there would be an error. This patch sets the CROSS depends on the arch. Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 39c97d5..96c387f 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,12 @@
# Prefix of cross toolchain, if anything
# Example: CROSS= powerpc64-unknown-linux-gnu-
#
-CROSS ?= powerpc64-linux-
+ARCH = $(shell uname -m)
+ifeq ("$(ARCH)", "ppc64")
+ CROSS ?=
+else
+ CROSS ?= powerpc64-linux-
+endif
#
# Set to enable SLW bits