Package: arm-trusted-firmware / 2.12.1+dfsg-1

use-ldflags-with-fiptool-and-cert-create Patch series | download
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
Use LDFLAGS when building fiptool and cert_create.

Index: arm-trusted-firmware/tools/cert_create/Makefile
===================================================================
--- arm-trusted-firmware.orig/tools/cert_create/Makefile
+++ arm-trusted-firmware/tools/cert_create/Makefile
@@ -83,7 +83,7 @@ all: --openssl ${BINARY}
 
 ${BINARY}: ${OBJECTS} Makefile
 	$(s)echo "  HOSTLD  $@"
-	$(q)$(host-cc) ${OBJECTS} ${LIB_DIR} ${LIB} -o $@
+	$(q)$(host-cc) ${OBJECTS} ${LIB_DIR} ${LIB} ${LDFLAGS} -o $@
 
 %.o: %.c
 	$(s)echo "  HOSTCC  $<"
Index: arm-trusted-firmware/tools/fiptool/Makefile
===================================================================
--- arm-trusted-firmware.orig/tools/fiptool/Makefile
+++ arm-trusted-firmware/tools/fiptool/Makefile
@@ -74,7 +74,7 @@ all: --openssl ${PROJECT}
 
 ${PROJECT}: ${OBJECTS} Makefile
 	$(s)echo "  HOSTLD  $@"
-	$(q)$(host-cc) ${OBJECTS} -o $@ $(LDOPTS)
+	$(q)$(host-cc) ${OBJECTS} ${LDFLAGS} -o $@ $(LDOPTS)
 	$(s)echo
 	$(s)echo "Built $@ successfully"
 	$(s)echo