2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-06 11:56:22 +01:00
|
|
|
#
|
|
|
|
# rpi-firmware
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-06 11:56:22 +01:00
|
|
|
|
2017-01-23 21:23:17 +01:00
|
|
|
RPI_FIRMWARE_VERSION = 7f8ac8dac0b80291cbf5e56580139034a0a42070
|
2013-12-05 18:20:46 +01:00
|
|
|
RPI_FIRMWARE_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_VERSION))
|
2013-01-06 11:56:22 +01:00
|
|
|
RPI_FIRMWARE_LICENSE = BSD-3c
|
2013-05-08 03:34:21 +02:00
|
|
|
RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom
|
2015-01-01 21:23:50 +01:00
|
|
|
RPI_FIRMWARE_INSTALL_IMAGES = YES
|
2013-01-06 11:56:22 +01:00
|
|
|
|
2015-06-29 00:25:10 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS),y)
|
2015-01-09 23:46:20 +01:00
|
|
|
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
|
2015-02-22 21:10:12 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/boot/bcm2709-rpi-2-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2709-rpi-2-b.dtb
|
2016-03-13 23:25:49 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/boot/bcm2710-rpi-3-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2710-rpi-3-b.dtb
|
2015-06-29 00:25:11 +02:00
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS),y)
|
|
|
|
define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS
|
2016-04-25 23:48:34 +02:00
|
|
|
for ovldtb in $(@D)/boot/overlays/*.dtbo; do \
|
2015-01-09 23:46:20 +01:00
|
|
|
$(INSTALL) -D -m 0644 $${ovldtb} $(BINARIES_DIR)/rpi-firmware/overlays/$${ovldtb##*/} || exit 1; \
|
|
|
|
done
|
|
|
|
endef
|
2015-06-29 00:25:10 +02:00
|
|
|
endif
|
2015-01-09 23:46:20 +01:00
|
|
|
|
2015-07-01 19:40:28 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG),y)
|
|
|
|
define RPI_FIRMWARE_INSTALL_TARGET_CMDS
|
2016-03-15 16:43:10 +01:00
|
|
|
$(INSTALL) -D -m 0700 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/bin/vcdbg \
|
2015-07-01 19:40:28 +02:00
|
|
|
$(TARGET_DIR)/usr/sbin/vcdbg
|
|
|
|
endef
|
|
|
|
endif # INSTALL_VCDBG
|
|
|
|
|
2015-01-01 21:23:50 +01:00
|
|
|
define RPI_FIRMWARE_INSTALL_IMAGES_CMDS
|
2013-01-06 11:56:22 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/rpi-firmware/bootcode.bin
|
2013-12-02 21:49:28 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/boot/start$(BR2_PACKAGE_RPI_FIRMWARE_BOOT).elf $(BINARIES_DIR)/rpi-firmware/start.elf
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/boot/fixup$(BR2_PACKAGE_RPI_FIRMWARE_BOOT).dat $(BINARIES_DIR)/rpi-firmware/fixup.dat
|
2013-01-06 11:56:22 +01:00
|
|
|
$(INSTALL) -D -m 0644 package/rpi-firmware/config.txt $(BINARIES_DIR)/rpi-firmware/config.txt
|
2013-06-06 14:23:05 +02:00
|
|
|
$(INSTALL) -D -m 0644 package/rpi-firmware/cmdline.txt $(BINARIES_DIR)/rpi-firmware/cmdline.txt
|
2015-01-09 23:46:20 +01:00
|
|
|
$(RPI_FIRMWARE_INSTALL_DTB)
|
2015-06-29 00:25:11 +02:00
|
|
|
$(RPI_FIRMWARE_INSTALL_DTB_OVERLAYS)
|
2013-01-06 11:56:22 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|