rabbitmq-server: security bump to version 3.6.6
[buildroot-gz.git] / package / rpi-firmware / rpi-firmware.mk
blob2fd51d01873aae474eb01e167201962d68647dc2
1 ################################################################################
3 # rpi-firmware
5 ################################################################################
7 RPI_FIRMWARE_VERSION = 2d5dc978b5a1a25f1c68666747e7585fabbcde2f
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 RPI_FIRMWARE_DEPENDENCIES += host-rpi-firmware
15 ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS),y)
16 define RPI_FIRMWARE_INSTALL_DTB
17 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b.dtb
18 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b-plus.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b-plus.dtb
19 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2709-rpi-2-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2709-rpi-2-b.dtb
20 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2710-rpi-3-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2710-rpi-3-b.dtb
21 endef
22 endif
24 ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS),y)
25 define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS
26 for ovldtb in $(@D)/boot/overlays/*.dtbo; do \
27 $(INSTALL) -D -m 0644 $${ovldtb} $(BINARIES_DIR)/rpi-firmware/overlays/$${ovldtb##*/} || exit 1; \
28 done
29 endef
30 endif
32 ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG),y)
33 define RPI_FIRMWARE_INSTALL_TARGET_CMDS
34 $(INSTALL) -D -m 0700 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/bin/vcdbg \
35 $(TARGET_DIR)/usr/sbin/vcdbg
36 endef
37 endif # INSTALL_VCDBG
39 define RPI_FIRMWARE_INSTALL_IMAGES_CMDS
40 $(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/rpi-firmware/bootcode.bin
41 $(INSTALL) -D -m 0644 $(@D)/boot/start$(BR2_PACKAGE_RPI_FIRMWARE_BOOT).elf $(BINARIES_DIR)/rpi-firmware/start.elf
42 $(INSTALL) -D -m 0644 $(@D)/boot/fixup$(BR2_PACKAGE_RPI_FIRMWARE_BOOT).dat $(BINARIES_DIR)/rpi-firmware/fixup.dat
43 $(INSTALL) -D -m 0644 package/rpi-firmware/config.txt $(BINARIES_DIR)/rpi-firmware/config.txt
44 $(INSTALL) -D -m 0644 package/rpi-firmware/cmdline.txt $(BINARIES_DIR)/rpi-firmware/cmdline.txt
45 $(RPI_FIRMWARE_INSTALL_DTB)
46 $(RPI_FIRMWARE_INSTALL_DTB_OVERLAYS)
47 endef
49 # We have no host sources to get, since we already
50 # bundle the script we want to install.
51 HOST_RPI_FIRMWARE_SOURCE =
53 define HOST_RPI_FIRMWARE_INSTALL_CMDS
54 $(INSTALL) -D -m 0755 package/rpi-firmware/mkknlimg $(HOST_DIR)/usr/bin/mkknlimg
55 endef
57 $(eval $(generic-package))
58 $(eval $(host-generic-package))