From ea77365555ff752735a1507570e737367f235064 Mon Sep 17 00:00:00 2001 From: Vishal Bhoj Date: Fri, 15 Sep 2017 12:05:09 +0100 Subject: [PATCH] atf:set flag to build in lp64 mode for ilp32 toolchain Signed-off-by: Vishal Bhoj Signed-off-by: Daniel Díaz --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/atf/Makefile b/atf/Makefile index 6fb10b76..24016366 100644 --- a/atf/Makefile +++ b/atf/Makefile @@ -204,11 +204,11 @@ $(eval $(call assert_boolean,USE_COHERENT_MEM)) $(eval $(call add_define,USE_COHERENT_MEM)) ASFLAGS += -nostdinc -ffreestanding -Wa,--fatal-warnings \ - -Werror -Wmissing-include-dirs \ + -Wno-error -Wmissing-include-dirs -mabi=lp64 \ -mgeneral-regs-only -D__ASSEMBLY__ \ ${DEFINES} ${INCLUDES} CFLAGS += -nostdinc -ffreestanding -Wall \ - -Werror -Wmissing-include-dirs \ + -Wno-error -Wmissing-include-dirs -mabi=lp64 \ -mgeneral-regs-only -mstrict-align \ -std=c99 -c -Os ${DEFINES} ${INCLUDES} -fno-pic CFLAGS += -ffunction-sections -fdata-sections \ @@ -216,6 +216,7 @@ CFLAGS += -ffunction-sections -fdata-sections \ LDFLAGS += --fatal-warnings -O1 LDFLAGS += --gc-sections +LDFLAGS += -m aarch64elf CC := ${CROSS_COMPILE}gcc -- 2.7.4