]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc: Don't build assembly files with ABIv2
authorAnton Blanchard <anton@samba.org>
Wed, 23 Apr 2014 00:02:04 +0000 (10:02 +1000)
committerAnton Blanchard <anton@samba.org>
Wed, 23 Apr 2014 00:02:04 +0000 (10:02 +1000)
We avoid ABIv2 when building c files since commit b2ca8c89 (powerpc:
Don't use ELFv2 ABI to build the kernel). Do the same for assembly
files.

Signed-off-by: Anton Blanchard <anton@samba.org>
arch/powerpc/Makefile

index 4c0cedf4e2c7dda768378223deb024c03a94b7c9..e8dd01af504d57d2f278009249a8efd655552d22 100644 (file)
@@ -115,6 +115,7 @@ endif
 
 CFLAGS-$(CONFIG_PPC64) := -mtraceback=no -mcall-aixdesc
 CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1)
+AFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1)
 CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc)
 CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions)
 CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD)
@@ -151,7 +152,7 @@ endif
 CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell)
 
 KBUILD_CPPFLAGS        += -Iarch/$(ARCH)
-KBUILD_AFLAGS  += -Iarch/$(ARCH)
+KBUILD_AFLAGS  += -Iarch/$(ARCH) $(AFLAGS-y)
 KBUILD_CFLAGS  += -msoft-float -pipe -Iarch/$(ARCH) $(CFLAGS-y)
 CPP            = $(CC) -E $(KBUILD_CFLAGS)