Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Don't build assembly files with ABIv2

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>

+2 -1
+2 -1
arch/powerpc/Makefile
··· 115 115 116 116 CFLAGS-$(CONFIG_PPC64) := -mtraceback=no -mcall-aixdesc 117 117 CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) 118 + AFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) 118 119 CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc) 119 120 CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions) 120 121 CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD) ··· 152 151 CFLAGS-$(CONFIG_TUNE_CELL) += $(call cc-option,-mtune=cell) 153 152 154 153 KBUILD_CPPFLAGS += -Iarch/$(ARCH) 155 - KBUILD_AFLAGS += -Iarch/$(ARCH) 154 + KBUILD_AFLAGS += -Iarch/$(ARCH) $(AFLAGS-y) 156 155 KBUILD_CFLAGS += -msoft-float -pipe -Iarch/$(ARCH) $(CFLAGS-y) 157 156 CPP = $(CC) -E $(KBUILD_CFLAGS) 158 157