buildroot/boot
Vincent Stehlé f3597910cf boot/arm-trusted-firmware: add patch to fix fiptool link
When building a fip firmware (BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y), the
TF-A build recipe starts by building the host program fiptool with the
proper build environment variables. Then the main TF-A target firmware
build step takes place, with the expectation that the fiptool program will
be used under the hood if necessary.

In TF-A, the build recipe for the host program fiptool has subtly changed
after v2.7, in commit cf2dd17ddda2 ("refactor(security): add OpenSSL 1.x
compatibility"). This change has the effect to force re-linking fiptool
each time.

If we try to build with Buildroot a fip firmware with a TF-A version after
v2.7 comprising the aforementioned change, the fiptool program is forcibly
re-linked during the main firmware build step. This happens without the
proper build environment variables and consequently, if openssl is not
installed on the host, the libcrypto shared library will not be found by
the linker and the link will fail with the following error:

  /usr/bin/ld: cannot find -lcrypto: No such file or directory

A patch has been integrated into TF-A to avoid re-linking fiptool when not
necessary, which should solve the problem starting with version v2.10. Add
that patch in Buildroot for versions v2.8 and v2.9, to repair the build in
the cases described above.

Fixes:

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

Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
Cc: Dick Olsson <hi@senzilla.io>
Cc: Sergey Matyukevich <geomatsi@gmail.com>
[yann.morin.1998@free.fr:
  - don't use symlink in v2.9, just copy patch
  - fix numbering in v2.8 which now has two patches
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2023-07-23 19:28:21 +02:00
..
afboot-stm32 boot/afboot-stm32: disable stack-protector 2023-02-08 16:54:35 +01:00
arm-trusted-firmware boot/arm-trusted-firmware: add patch to fix fiptool link 2023-07-23 19:28:21 +02:00
at91bootstrap boot/at91bootstrap: rename patches with the proper naming convention 2021-12-11 20:48:58 +01:00
at91bootstrap3 boot/at91bootstrap3: add svn repository method 2021-12-30 17:36:45 +01:00
at91dataflashboot boot/at91dataflashboot: disable stack-protector 2023-02-22 15:52:22 +01:00
barebox boot/barebox: explicitly set the timezone for the kbuild timestamp 2023-02-06 11:57:08 +01:00
beaglev-ddrinit package/beaglev-ddrinit: update to latest 8d6318 2022-07-25 22:52:20 +02:00
beaglev-secondboot package/beaglev-secondboot: bump to version e17302 2022-07-26 00:11:13 +02:00
binaries-marvell boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
boot-wrapper-aarch64 boot/boot-wrapper-aarch64: bump version 2023-02-23 23:43:32 +01:00
edk2 boot/edk2: introduce a new _OVMF_DEBUG_ON_SERIAL option 2023-07-23 18:11:30 +02:00
grub2 boot/grub2: add details on grub.cfg location 2023-02-21 22:59:18 +01:00
lpc32xxcdl boot/lpc32xxcdl: rename patches with the proper naming convention 2021-12-11 20:48:58 +01:00
mv-ddr-marvell boot/mv-ddr-marvell: disable SSP 2022-10-17 10:32:18 +02:00
mxs-bootlets boot/mxs-bootlets: fix build without any bootstream 2023-02-27 17:03:15 +01:00
opensbi boot/opensbi: Bump to version 1.3 2023-06-26 19:02:49 +02:00
optee-os boot/optee-os: bump to version 3.21.0 2023-05-07 23:28:52 +02:00
s500-bootloader boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
shim boot, package, support, toolchain: switch to 2 spaces for the hash file 2022-07-28 23:05:23 +02:00
syslinux package/syslinux: disable documentation 2022-08-14 22:42:50 +02:00
ti-k3-r5-loader boot/ti-k3-r5-loader: drop bogus TI_K3_R5_LOADER_BOARD 2023-01-04 17:53:50 +01:00
uboot boot/uboot: set DTC path when BR2_TARGET_UBOOT_NEEDS_DTC 2023-07-18 22:39:14 +02:00
vexpress-firmware support/download: change format of archives generated from git 2021-01-10 22:06:58 +01:00
common.mk Fix build reproducibility in Make 3.82 2013-09-06 23:27:42 +02:00
Config.in boot/gummiboot: remove package 2023-02-06 22:40:10 +01:00