[Skiboot] [PATCH 7/7] Makefile: Fix building natively on ppc64le

Joel Stanley joel at jms.id.au
Tue May 8 20:23:03 AEST 2018


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 at jms.id.au>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 3b962a13fbc9..68d4dc7deac0 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
-- 
2.17.0



More information about the Skiboot mailing list