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

powerpc: Build little endian ppc64 kernel with ABIv2

Build the little endian ppc64 kernel with ABIv2 if the toolchain
supports it. We can identify an ABIv2 capable toolchain by the
-mabi=elfv2 compiler flag.

Signed-off-by: Anton Blanchard <anton@samba.org>

+7 -3
+7 -3
arch/powerpc/Makefile
··· 113 113 endif 114 114 endif 115 115 116 - CFLAGS-$(CONFIG_PPC64) := -mtraceback=no -mcall-aixdesc 117 - CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) 118 - AFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv1) 116 + CFLAGS-$(CONFIG_PPC64) := -mtraceback=no 117 + ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y) 118 + CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv2,-mcall-aixdesc) 119 + AFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mabi=elfv2) 120 + else 121 + CFLAGS-$(CONFIG_PPC64) += -mcall-aixdesc 122 + endif 119 123 CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mcmodel=medium,-mminimal-toc) 120 124 CFLAGS-$(CONFIG_PPC64) += $(call cc-option,-mno-pointers-to-nested-functions) 121 125 CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD)