package/rpi-firmware: convert dtb overlay install loop to make-level foreach loop

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Peter Seiderer 2021-09-21 22:21:36 +02:00 committed by Yann E. MORIN
parent b900a63357
commit d0350a6c02

View File

@ -45,9 +45,9 @@ endif
ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS),y)
define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS
for ovldtb in $(@D)/boot/overlays/*.dtbo; do \
$(INSTALL) -D -m 0644 $${ovldtb} $(BINARIES_DIR)/rpi-firmware/overlays/$${ovldtb##*/} || exit 1; \
done
$(foreach ovldtb,$(wildcard $(@D)/boot/overlays/*.dtbo), \
$(INSTALL) -D -m 0644 $(ovldtb) $(BINARIES_DIR)/rpi-firmware/overlays/$(notdir $(ovldtb))
)
endef
else
# Still create the directory, so a genimage.cfg can include it independently of