boot/arm-trusted-firmware: fix fiptool linking issue on hosts without openssl
PATCH 1/1 boot/arm-trusted-firmware: fix fiptool linking issue on hosts without openssl
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/5834758777
Commit e7d16c35a (boot/arm-trusted-firmware: fix the RPATH of fiptool) tried to fix the build of host-fiptool, but forgot to pass HOST_CFLAGS.
On hosts without (compatible) openssl development headers, this breaks the build when it cannot find the openssl headers:
fiptool_platform.h:19:11: fatal error: openssl/sha.h: No such file or directory
--- boot/arm-trusted-firmware/arm-trusted-firmware.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
boot/arm-trusted-firmware/arm-trusted-firmware.mk +1 -1
@@ -64,7 +64,7 @@ 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_LDFLAGS)" + HOSTCC="$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS)" ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_SSP),y) ARM_TRUSTED_FIRMWARE_MAKE_OPTS += \
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · On Thu, 4 Jan 2024 17:56:33 +0100 Peter Korsgaard <[email protected]> wrote:
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/5834758777Commit
e7d16c35a(boot/arm-trusted-firmware: fix the RPATH of fiptool) tried to fix the build of host-fiptool, but forgot to passHOST_CFLAGS.On hosts without (compatible) openssl development headers, this breaks the build when it cannot find the openssl headers:
Quoted 6 lines
fiptool_platform.h:19:11: fatal error:
openssl/sha.h: No such file or directorySigned-off-by Peter Korsgaard <[email protected]>--- boot/arm-trusted-firmware/arm-trusted-firmware.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks a lot for having cooked the patch! Applied to master, thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/5834758777Commit
e7d16c35a(boot/arm-trusted-firmware: fix the RPATH of fiptool) tried to fix the build of host-fiptool, but forgot to passHOST_CFLAGS.
Quoted 6 lines
On hosts without (compatible) openssl development headers, this breaks the build when it cannot find the openssl headers:
fiptool_platform.h:19:11: fatal error:
openssl/sha.h: No such file or directorySigned-off-by Peter Korsgaard <[email protected]>
Committed to 2023.02.x and 2023.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot