diff options
author | Wei Yang <weiyang@linux.vnet.ibm.com> | 2014-12-02 14:24:16 +0800 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-12-02 17:41:47 +1100 |
commit | db089242bda7a5e3805b1e02da06f81e6075ba8a (patch) | |
tree | 5f34b6cbf4214f5ca29c74ce13b4dbca941f1453 /Makefile | |
parent | 7f4d2121217d562f541e8c4b008141d9880a9f6d (diff) | |
download | skiboot-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-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |