diff options
author | Will Deacon <will.deacon@arm.com> | 2013-10-11 09:52:08 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-10-25 10:59:31 -0400 |
commit | a0974e6e217aead196033d72f898e2acb575304d (patch) | |
tree | a6ae076e52bc883256204163780ee40ddf5a15b2 /arch/arm64/Makefile | |
parent | 831ccf79b46e02f31cfd16c66df9d5600f635155 (diff) |
arm64: big-endian: add big-endian support to top-level arch Makefile
This patch adds big-endian support to the AArch64 top-level Makefile.
This currently just passes the relevant flags to the toolchain and is
predicated on a Kconfig option that will be introduced later on.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/Makefile')
-rw-r--r-- | arch/arm64/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index d90cf79f233a..2fceb71ac3b7 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile | |||
@@ -20,9 +20,15 @@ LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) | |||
20 | KBUILD_DEFCONFIG := defconfig | 20 | KBUILD_DEFCONFIG := defconfig |
21 | 21 | ||
22 | KBUILD_CFLAGS += -mgeneral-regs-only | 22 | KBUILD_CFLAGS += -mgeneral-regs-only |
23 | ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) | ||
24 | KBUILD_CPPFLAGS += -mbig-endian | ||
25 | AS += -EB | ||
26 | LD += -EB | ||
27 | else | ||
23 | KBUILD_CPPFLAGS += -mlittle-endian | 28 | KBUILD_CPPFLAGS += -mlittle-endian |
24 | AS += -EL | 29 | AS += -EL |
25 | LD += -EL | 30 | LD += -EL |
31 | endif | ||
26 | 32 | ||
27 | comma = , | 33 | comma = , |
28 | 34 | ||