All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] boot/arm-trusted-firmware: pass HOSTLD and HOSTLDFLAGS
@ 2026-11-04 12:52 Léo DENIEUL
  2026-11-04 21:01 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Léo DENIEUL @ 2026-11-04 12:52 UTC (permalink / raw)
  To: buildroot; +Cc: Sergey Matyukevich, Dick Olsson, Vincent Jardin

Since TF-A v2.15, commit 0607fb7f6bd9 ("feat(build): add HOSTLDFLAGS to
pass flags to host links"), the host tools such as fiptool are linked
with $(HOSTLD) instead of $(HOSTCC).

As Buildroot exports HOSTLD=ld, fiptool fails to link (undefined
reference to optind), so pass the host compiler and the host link
flags.

Signed-off-by: Leo DENIEUL <leo.denieul.yoshino@gmail.com>
---
 boot/arm-trusted-firmware/arm-trusted-firmware.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/boot/arm-trusted-firmware/arm-trusted-firmware.mk b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
index 798efd5a15..2aaa7e3d19 100644
--- a/boot/arm-trusted-firmware/arm-trusted-firmware.mk
+++ b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
@@ -67,7 +67,9 @@ ARM_TRUSTED_FIRMWARE_MAKE_OPTS += \
 	$(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES)) \
 	PLAT=$(ARM_TRUSTED_FIRMWARE_PLATFORM) \
 	TARGET_BOARD=$(ARM_TRUSTED_FIRMWARE_TARGET_BOARD) \
-	HOSTCC="$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS)"
+	HOSTCC="$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS)" \
+	HOSTLD="$(HOSTCC)" \
+	HOSTLDFLAGS="$(HOST_LDFLAGS)"
 
 ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_SSP),y)
 ARM_TRUSTED_FIRMWARE_MAKE_OPTS += \
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] boot/arm-trusted-firmware: pass HOSTLD and HOSTLDFLAGS
  2026-11-04 12:52 [Buildroot] [PATCH] boot/arm-trusted-firmware: pass HOSTLD and HOSTLDFLAGS Léo DENIEUL
@ 2026-11-04 21:01 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-11-04 21:01 UTC (permalink / raw)
  To: Léo DENIEUL
  Cc: buildroot, Sergey Matyukevich, Dick Olsson, Vincent Jardin

On Wed, Nov 04, 2026 at 01:52:17PM +0100, Léo DENIEUL wrote:
> Since TF-A v2.15, commit 0607fb7f6bd9 ("feat(build): add HOSTLDFLAGS to
> pass flags to host links"), the host tools such as fiptool are linked
> with $(HOSTLD) instead of $(HOSTCC).
> 
> As Buildroot exports HOSTLD=ld, fiptool fails to link (undefined
> reference to optind), so pass the host compiler and the host link
> flags.
> 
> Signed-off-by: Leo DENIEUL <leo.denieul.yoshino@gmail.com>

Applied to master, thanks!

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-04 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04 12:52 [Buildroot] [PATCH] boot/arm-trusted-firmware: pass HOSTLD and HOSTLDFLAGS Léo DENIEUL
2026-11-04 21:01 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.