board/raspberrypi: allow non-matching globs for DTBs

When installing DTBs from the rpi-firmware package
(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS=y, the default), there's no DTB
directly in the images directory because the kernel build doesn't
provide one. The DTBs from rpi-firmware are installed in the
rpi-firmware directory.

Using pre-compiled DTBs is discouraged, but useful for using mainline
kernels until suitable DTS can be merged, or to provide U-Boot with a
DTB (via the firmware bootloader) independent of whatever kernel DTB
is in use.

Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de>
Reviewed-by: Gaël PORTAY <gael.portay+rtone@gmail.com>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
Fiona Klute (WIWA)
2025-02-07 18:14:57 +01:00
committed by Arnout Vandecappelle
parent afdd9c079d
commit 60d1b04a69

View File

@@ -13,6 +13,8 @@ if [ ! -e "${GENIMAGE_CFG}" ]; then
FILES=()
for i in "${BINARIES_DIR}"/*.dtb "${BINARIES_DIR}"/rpi-firmware/*; do
# ignore literal globs that didn't match anything
[ -e "${i}" ] || continue
FILES+=( "${i#${BINARIES_DIR}/}" )
done