summaryrefslogtreecommitdiff
path: root/meta-ilp32/recipes-overlayed/edk2-hikey/edk2-hikey/0001-atf-set-flag-to-build-in-lp64-mode-for-ilp32-toolcha.patch
blob: ef77dafde9137b6cf0ce560ef6ac800e1915c602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From ea77365555ff752735a1507570e737367f235064 Mon Sep 17 00:00:00 2001
From: Vishal Bhoj <vishal.bhoj@linaro.org>
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 <vishal.bhoj@linaro.org>
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
---
 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