diff options
author | Joel Stanley <joel@jms.id.au> | 2018-05-08 19:53:03 +0930 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-05-09 10:17:42 -0500 |
commit | a0807ab01b37aae03a1ea6e2d90f03a587549319 (patch) | |
tree | 1b63d412d046ac3d3910c1de5a78ddb3ea2811c3 /Makefile | |
parent | f2d36bc08e82a2be0891a70b1c779ca160eff976 (diff) | |
download | skiboot-a0807ab01b37aae03a1ea6e2d90f03a587549319.zip skiboot-a0807ab01b37aae03a1ea6e2d90f03a587549319.tar.gz skiboot-a0807ab01b37aae03a1ea6e2d90f03a587549319.tar.bz2 |
Makefile: Fix building natively on ppc64le
When on ppc64le and CROSS is not set by the environment, make assumes
ppc64 and sets a default CROSS. Check for ppc64le as well, so that
'make' works out of the box on ppc64le.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -9,11 +9,11 @@ ARCH = $(shell uname -m) ifdef CROSS_COMPILE CROSS ?= $(CROSS_COMPILE) endif -ifeq ("$(ARCH)", "ppc64") - CROSS ?= -else +ifneq ("$(ARCH)", "ppc64") +ifneq ("$(ARCH)", "ppc64le") CROSS ?= powerpc64-linux- endif +endif # # Main debug switch |