python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / rpi-firmware / rpi-firmware.mk
blobb73ef53d8a30052a3afebfb65aec768cce3d1282
1 ################################################################################
3 # rpi-firmware
5 ################################################################################
7 RPI_FIRMWARE_VERSION = 78c4983379de0537f49a97fb37ceaaf42632b28c
8 RPI_FIRMWARE_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_VERSION))
9 RPI_FIRMWARE_LICENSE = BSD-3c
10 RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom
11 RPI_FIRMWARE_INSTALL_IMAGES = YES
13 ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS),y)
14 define RPI_FIRMWARE_INSTALL_DTB
15 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b.dtb
16 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b-plus.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b-plus.dtb
17 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2709-rpi-2-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2709-rpi-2-b.dtb
18 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2710-rpi-3-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2710-rpi-3-b.dtb
19 endef
20 endif
22 ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS),y)
23 define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS
24 for ovldtb in $(@D)/boot/overlays/*.dtbo; do \
25 $(INSTALL) -D -m 0644 $${ovldtb} $(BINARIES_DIR)/rpi-firmware/overlays/$${ovldtb##*/} || exit 1; \
26 done
27 endef
28 endif
30 ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG),y)
31 define RPI_FIRMWARE_INSTALL_TARGET_CMDS
32 $(INSTALL) -D -m 0700 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/bin/vcdbg \
33 $(TARGET_DIR)/usr/sbin/vcdbg
34 endef
35 endif # INSTALL_VCDBG
37 define RPI_FIRMWARE_INSTALL_IMAGES_CMDS
38 $(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/rpi-firmware/bootcode.bin
39 $(INSTALL) -D -m 0644 $(@D)/boot/start$(BR2_PACKAGE_RPI_FIRMWARE_BOOT).elf $(BINARIES_DIR)/rpi-firmware/start.elf
40 $(INSTALL) -D -m 0644 $(@D)/boot/fixup$(BR2_PACKAGE_RPI_FIRMWARE_BOOT).dat $(BINARIES_DIR)/rpi-firmware/fixup.dat
41 $(INSTALL) -D -m 0644 package/rpi-firmware/config.txt $(BINARIES_DIR)/rpi-firmware/config.txt
42 $(INSTALL) -D -m 0644 package/rpi-firmware/cmdline.txt $(BINARIES_DIR)/rpi-firmware/cmdline.txt
43 $(RPI_FIRMWARE_INSTALL_DTB)
44 $(RPI_FIRMWARE_INSTALL_DTB_OVERLAYS)
45 endef
47 $(eval $(generic-package))