Skip to content

Commit

Permalink
Makefile: Fix building natively on ppc64le
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
shenki authored and stewartsmith committed May 9, 2018
1 parent f2d36bc commit a0807ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -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
Expand Down

0 comments on commit a0807ab

Please sign in to comment.