boot/arm-trusted-firmware: build fiptool separately with dependency on host-openssl
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 17 Dec 2017 08:55:53 +0000 (09:55 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 18 Dec 2017 22:09:39 +0000 (23:09 +0100)
commita957d9a90ade4194dffe3eb2fc0136bc5d077c28
tree8eb5af08cdba26fd79c548447a9e0d82f297a369
parent380c3d5e4067fcd0d551890083dc83edd6b8a055
boot/arm-trusted-firmware: build fiptool separately with dependency on host-openssl

ATF >= 1.3 builds a host program called fiptool which uses
OpenSSL, so we need to build host-openssl. We could have made it an
optional dependency like U-Boot does, but since most ATF versions are
going to be >= 1.3 in the near future, we simply make host-openssl a
mandatory dependency.

However, the ATF build system is not very good, and you can't easily
pass flags that will affect the build of host programs. Therefore, we
take the approach of building fiptool separately before triggering the
real build process.

It would obviously be better to fix ATF itself, but as usual with
those bootloader packages, we fetch different versions depending on
the platform/configuration, making it difficult to use patches.

Fixes:

  https://gitlab.com/buildroot.org/buildroot/-/jobs/44868961

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
boot/arm-trusted-firmware/arm-trusted-firmware.mk