arm-trusted-firmware-tools: add patch to pass LDFLAGS
authorDaniel Golle <daniel@makrotopia.org>
Wed, 10 Feb 2021 19:18:04 +0000 (19:18 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 10 Feb 2021 19:19:18 +0000 (19:19 +0000)
This should hopefully fix builds on the buildbot.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/boot/arm-trusted-firmware-tools/patches/001-respect-LDFLAGS.patch [new file with mode: 0644]

diff --git a/package/boot/arm-trusted-firmware-tools/patches/001-respect-LDFLAGS.patch b/package/boot/arm-trusted-firmware-tools/patches/001-respect-LDFLAGS.patch
new file mode 100644 (file)
index 0000000..0b79891
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/tools/fiptool/Makefile
++++ b/tools/fiptool/Makefile
+@@ -38,7 +38,7 @@
+ ${PROJECT}: ${OBJECTS} Makefile
+       @echo "  HOSTLD  $@"
+-      ${Q}${HOSTCC} ${OBJECTS} -o $@ ${LDLIBS}
++      ${Q}${HOSTCC} ${OBJECTS} -o $@ ${LDLIBS} $(LDFLAGS)
+       @${ECHO_BLANK_LINE}
+       @echo "Built $@ successfully"
+       @${ECHO_BLANK_LINE}