aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2018-05-08 19:53:03 +0930
committerStewart Smith <stewart@linux.ibm.com>2018-05-09 10:17:42 -0500
commita0807ab01b37aae03a1ea6e2d90f03a587549319 (patch)
tree1b63d412d046ac3d3910c1de5a78ddb3ea2811c3 /Makefile
parentf2d36bc08e82a2be0891a70b1c779ca160eff976 (diff)
downloadskiboot-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--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3b962a1..68d4dc7 100644
--- a/Makefile
+++ b/Makefile
@@ -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