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.
@@ -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
