package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / rpi-firmware / rpi-firmware.mk
blob243637668d85498761574e3ba4fe333db4a72d65
1 ################################################################################
3 # rpi-firmware
5 ################################################################################
7 RPI_FIRMWARE_VERSION = 52f65ac4ad1ef1d2838fa2f921d5bc3ece4c777b
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_TARGET = NO
12 RPI_FIRMWARE_INSTALL_IMAGES = YES
14 RPI_FIRMWARE_DEPENDENCIES += host-rpi-firmware
16 ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS),y)
17 define RPI_FIRMWARE_INSTALL_DTB
18 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b.dtb
19 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b-plus.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b-plus.dtb
20 $(INSTALL) -D -m 0644 $(@D)/boot/bcm2709-rpi-2-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2709-rpi-2-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/*.dtb; 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 =
52 HOST_RPI_FIRMWARE_DEPENDENCIES =
54 define HOST_RPI_FIRMWARE_INSTALL_CMDS
55 $(INSTALL) -D -m 0755 package/rpi-firmware/mkknlimg $(HOST_DIR)/usr/bin/mkknlimg
56 endef
58 $(eval $(generic-package))
59 $(eval $(host-generic-package))