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:
parent
b900a63357
commit
d0350a6c02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user