diff options
author | Will Deacon <will.deacon@arm.com> | 2013-10-11 14:52:08 +0100 |
---|---|---|
committer | Victor Kamensky <victor.kamensky@linaro.org> | 2014-03-13 18:26:00 -0700 |
commit | 4a6928be0d11377ff178fa7a355a98adfd8e4a29 (patch) | |
tree | 79746eba2359b8e4cb6ed1ee31aa4f1033955b36 | |
parent | 00767d21ba2a58cc3ca74c53ee1559d9aa581157 (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>
(cherry picked from commit a0974e6e217aead196033d72f898e2acb575304d)
Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
-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 c95c5cb212fd..3a926eb93c95 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -20,9 +20,15 @@ LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) KBUILD_DEFCONFIG := defconfig KBUILD_CFLAGS += -mgeneral-regs-only +ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) +KBUILD_CPPFLAGS += -mbig-endian +AS += -EB +LD += -EB +else KBUILD_CPPFLAGS += -mlittle-endian AS += -EL LD += -EL +endif comma = , |