aboutsummaryrefslogtreecommitdiff
path: root/package/rpi-firmware
diff options
context:
space:
mode:
authorGravatar Martin Bark <martin@barkynet.com>2018-03-24 14:10:14 +0000
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-04-06 22:02:53 +0200
commit93c1e3168797f81880385a8187ba11a815def156 (patch)
tree8a288759a5e22346b3db8d13c019fa38035e8bd0 /package/rpi-firmware
parent012c400f9d5eef2fb04dcde931d08852cc19ffdc (diff)
downloadbuildroot-93c1e3168797f81880385a8187ba11a815def156.tar.gz
buildroot-93c1e3168797f81880385a8187ba11a815def156.tar.bz2
package/rpi-firmware: improve installation of dtb files
Don't list specific dtb files, instead install all dtb files in the same way as dtbo files are currently done. Signed-off-by: Martin Bark <martin@barkynet.com> [Thomas: use make foreach loop instead of shell for loop.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/rpi-firmware')
-rw-r--r--package/rpi-firmware/rpi-firmware.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/package/rpi-firmware/rpi-firmware.mk b/package/rpi-firmware/rpi-firmware.mk
index 1f4a168996..eab4c5d307 100644
--- a/package/rpi-firmware/rpi-firmware.mk
+++ b/package/rpi-firmware/rpi-firmware.mk
@@ -12,10 +12,9 @@ RPI_FIRMWARE_INSTALL_IMAGES = YES
ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS),y)
define RPI_FIRMWARE_INSTALL_DTB
- $(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b.dtb
- $(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b-plus.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b-plus.dtb
- $(INSTALL) -D -m 0644 $(@D)/boot/bcm2709-rpi-2-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2709-rpi-2-b.dtb
- $(INSTALL) -D -m 0644 $(@D)/boot/bcm2710-rpi-3-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2710-rpi-3-b.dtb
+ $(foreach dtb,$(wildcard $(@D)/boot/*.dtb), \
+ $(INSTALL) -D -m 0644 $(dtb) $(BINARIES_DIR)/rpi-firmware/$(notdir $(dtb))
+ )
endef
endif