]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/powerpc/config.mk
kbuild: fix CROSS_COMPILE settings in config.mk
[karo-tx-uboot.git] / arch / powerpc / config.mk
index e6bb9357292b5374c5fee314227a88c66585c810..e398f979823dd1f87c57a7d68089103c45f5f4c7 100644 (file)
@@ -5,12 +5,15 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-CROSS_COMPILE ?= ppc_8xx-
+ifeq ($(CROSS_COMPILE),)
+CROSS_COMPILE := ppc_8xx-
+endif
 
 CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
 LDFLAGS_FINAL += --gc-sections
-PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections -fdata-sections
-PLATFORM_CPPFLAGS += -DCONFIG_PPC -D__powerpc__
+PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections -fdata-sections \
+                                                               -meabi
+PLATFORM_CPPFLAGS += -DCONFIG_PPC -D__powerpc__ -ffixed-r2
 PLATFORM_LDFLAGS  += -n
 
 # Support generic board on PPC