diff options
author | Andrew Pinski <apinski@cavium.com> | 2014-09-03 14:18:55 -0700 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2015-03-06 16:47:31 +0300 |
commit | b979ff41ca54c0701de5034730c103ae3fd1bbfb (patch) | |
tree | e69d6f7580a3b958a5e447982d222021f0683f2b | |
parent | 13a7a6ac0a11197edcd0f756a035f472b42cdf8b (diff) |
ARM64: Force LP64 to compile the kernel
Sometimes the compiler is set to default to ILP32 ABI so we want to make sure the kernel can compile in that case.
Signed-off-by: Andrew Pinski <apinski@cavium.com>
-rw-r--r-- | arch/arm64/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 69ceedc982a5..2ad0c34951fe 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -18,14 +18,18 @@ GZFLAGS :=-9 KBUILD_DEFCONFIG := defconfig KBUILD_CFLAGS += -mgeneral-regs-only +KBUILD_CFLAGS += $(call cc-option,-mabi=lp64) +KBUILD_AFLAGS += $(call cc-option,-mabi=lp64) ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) KBUILD_CPPFLAGS += -mbig-endian AS += -EB LD += -EB +LDFLAGS += -maarch64linuxb else KBUILD_CPPFLAGS += -mlittle-endian AS += -EL LD += -EL +LDFLAGS += -maarch64linux endif CHECKFLAGS += -D__aarch64__ |