1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-04-04 20:28:30 +00:00

don't cross compile when on Power

This commit is contained in:
Dan Horák
2019-08-24 14:02:35 +02:00
parent 8bc3e8ea0a
commit 2d7994dc12

View File

@@ -1,4 +1,10 @@
CROSS_COMPILE = powerpc64le-linux-
ARCH = $(shell uname -m)
ifneq ("$(ARCH)", "ppc64")
ifneq ("$(ARCH)", "ppc64le")
CROSS_COMPILE = powerpc64le-linux-
endif
endif
CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld
OBJCOPY = $(CROSS_COMPILE)objcopy