From 60d1b04a69c7735c3d2d4d5ef9f47ca501271c97 Mon Sep 17 00:00:00 2001 From: "Fiona Klute (WIWA)" Date: Fri, 7 Feb 2025 18:14:57 +0100 Subject: [PATCH] board/raspberrypi: allow non-matching globs for DTBs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) Reviewed-by: Gaƫl PORTAY Signed-off-by: Arnout Vandecappelle --- board/raspberrypi/post-image.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/raspberrypi/post-image.sh b/board/raspberrypi/post-image.sh index e4611d05dd..a3a2d8d620 100755 --- a/board/raspberrypi/post-image.sh +++ b/board/raspberrypi/post-image.sh @@ -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