2012-07-24 20:39:17 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
2020-02-08 20:58:55 +00:00
|
|
|
PKG_NAME:=bcm27xx-gpu-fw
|
2020-05-28 07:43:02 +00:00
|
|
|
PKG_VERSION:=2020-05-27
|
|
|
|
PKG_RELEASE:=62fc8c01165a80021054a430182b504f7b877c2d
|
2012-07-24 20:39:17 +00:00
|
|
|
|
2016-04-16 09:27:56 +00:00
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)/rpi-firmware-$(PKG_RELEASE)
|
2012-07-24 20:39:17 +00:00
|
|
|
|
2016-04-26 21:09:12 +00:00
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
|
2012-07-24 20:39:17 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2016-04-16 09:27:56 +00:00
|
|
|
RPI_FIRMWARE_URL:=@GITHUB/raspberrypi/firmware/$(PKG_RELEASE)/boot/
|
|
|
|
RPI_FIRMWARE_FILE:=rpi-firmware-$(PKG_RELEASE)
|
2016-04-01 11:37:33 +00:00
|
|
|
|
|
|
|
define Download/LICENCE_broadcom
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-LICENCE.broadcom
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=LICENCE.broadcom
|
2019-12-23 16:48:22 +00:00
|
|
|
HASH:=c7283ff51f863d93a275c66e3b4cb08021a5dd4d8c1e7acc47d872fbe52d3d6b
|
2016-04-01 11:37:33 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,LICENCE_broadcom))
|
|
|
|
|
|
|
|
define Download/bootcode_bin
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-bootcode.bin
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=bootcode.bin
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=12c6b5fdd893ff60cddbad0fa8aea0ebd5328ed2a9cd39a2a09d7ac99621d5bf
|
2016-04-01 11:37:33 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,bootcode_bin))
|
|
|
|
|
|
|
|
define Download/fixup_dat
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-fixup.dat
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=fixup.dat
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=25d39e703af377ca6412c0ac68e6739d2ffb56634b9a7262140d26d8150fdf23
|
2016-04-01 11:37:33 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,fixup_dat))
|
|
|
|
|
|
|
|
define Download/fixup_cd_dat
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-fixup_cd.dat
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=fixup_cd.dat
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=9639f81ad007561048bb3956e88da425a84cef37f307a16734cdcfcdcbd40b4c
|
2016-04-01 11:37:33 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,fixup_cd_dat))
|
|
|
|
|
2018-12-04 21:27:59 +00:00
|
|
|
define Download/fixup_x_dat
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-fixup_x.dat
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=fixup_x.dat
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=538c4d514b55c09670bbc7bdc092e44ff1f572c4f124a47c5b514f120dff6263
|
2018-12-04 21:27:59 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,fixup_x_dat))
|
|
|
|
|
2019-07-09 18:17:31 +00:00
|
|
|
define Download/fixup4_dat
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-fixup4.dat
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=fixup4.dat
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=75312421da0e036f9d451facb848bd439247e4322ee2d36bbfe2f7acc9a6d681
|
2019-07-09 18:17:31 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,fixup4_dat))
|
|
|
|
|
|
|
|
define Download/fixup4cd_dat
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-fixup4cd.dat
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=fixup4cd.dat
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=9639f81ad007561048bb3956e88da425a84cef37f307a16734cdcfcdcbd40b4c
|
2019-07-09 18:17:31 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,fixup4cd_dat))
|
|
|
|
|
|
|
|
define Download/fixup4x_dat
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-fixup4x.dat
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=fixup4x.dat
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=d3d1a044412a22a7c366d57e79433532e137e9b184ea9ea68b0eb7577e70e4f3
|
2019-07-09 18:17:31 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,fixup4x_dat))
|
|
|
|
|
2016-04-01 11:37:33 +00:00
|
|
|
define Download/start_elf
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-start.elf
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=start.elf
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=5980340e652491926f263ac89b7bc2ab513246bd3eb27103bba4780d6e8568f8
|
2016-04-01 11:37:33 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,start_elf))
|
|
|
|
|
|
|
|
define Download/start_cd_elf
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-start_cd.elf
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=start_cd.elf
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=389a44e371802207ed56fe82a3beaf675eb51176112bde7d77546039d7085572
|
2016-04-01 11:37:33 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,start_cd_elf))
|
|
|
|
|
2018-12-04 21:27:59 +00:00
|
|
|
define Download/start_x_elf
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-start_x.elf
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=start_x.elf
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=32016c544353b285394f0006d57a785239fee0262ed1b0ff80b8028c918f0ad9
|
2018-12-04 21:27:59 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,start_x_elf))
|
|
|
|
|
2019-07-09 18:17:31 +00:00
|
|
|
define Download/start4_elf
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-start4.elf
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=start4.elf
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=ec26d746ddf76527b1702fbf7e76c7b036545cc43da81361a2887c92e4965dcc
|
2019-07-09 18:17:31 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,start4_elf))
|
|
|
|
|
|
|
|
define Download/start4cd_elf
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-start4cd.elf
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=start4cd.elf
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=ee507a448911a9d82edf632decb160d5712ab43d8d32b1225f1c406d4eb87820
|
2019-07-09 18:17:31 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,start4cd_elf))
|
|
|
|
|
|
|
|
define Download/start4x_elf
|
|
|
|
FILE:=$(RPI_FIRMWARE_FILE)-start4x.elf
|
|
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
|
|
URL_FILE:=start4x.elf
|
2020-05-28 07:43:02 +00:00
|
|
|
HASH:=9a32a06aadeb84649ee03a15f067fa9285791488ffe61b82f9788303a1355614
|
2019-07-09 18:17:31 +00:00
|
|
|
endef
|
|
|
|
$(eval $(call Download,start4x_elf))
|
|
|
|
|
2020-02-08 20:58:55 +00:00
|
|
|
define Package/bcm27xx-gpu-fw
|
2012-07-24 20:39:17 +00:00
|
|
|
SECTION:=boot
|
|
|
|
CATEGORY:=Boot Loaders
|
2020-02-08 20:58:55 +00:00
|
|
|
DEPENDS:=@TARGET_bcm27xx
|
|
|
|
TITLE:=bcm27xx-gpu-fw
|
|
|
|
DEFAULT:=y if TARGET_bcm27xx
|
2012-07-24 20:39:17 +00:00
|
|
|
endef
|
|
|
|
|
2020-02-08 20:58:55 +00:00
|
|
|
define Package/bcm27xx-gpu-fw/description
|
|
|
|
GPU and kernel boot firmware for bcm27xx.
|
2012-07-24 20:39:17 +00:00
|
|
|
endef
|
|
|
|
|
2016-04-01 11:37:33 +00:00
|
|
|
define Build/Prepare
|
|
|
|
rm -rf $(PKG_BUILD_DIR)
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
2020-03-23 07:55:14 +00:00
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-LICENCE.broadcom $(PKG_BUILD_DIR)/LICENCE.broadcom
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-bootcode.bin $(PKG_BUILD_DIR)/bootcode.bin
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-fixup.dat $(PKG_BUILD_DIR)/fixup.dat
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-fixup_cd.dat $(PKG_BUILD_DIR)/fixup_cd.dat
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-fixup_x.dat $(PKG_BUILD_DIR)/fixup_x.dat
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-fixup4.dat $(PKG_BUILD_DIR)/fixup4.dat
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-fixup4cd.dat $(PKG_BUILD_DIR)/fixup4cd.dat
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-fixup4x.dat $(PKG_BUILD_DIR)/fixup4x.dat
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-start.elf $(PKG_BUILD_DIR)/start.elf
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-start_cd.elf $(PKG_BUILD_DIR)/start_cd.elf
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-start_x.elf $(PKG_BUILD_DIR)/start_x.elf
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-start4.elf $(PKG_BUILD_DIR)/start4.elf
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-start4cd.elf $(PKG_BUILD_DIR)/start4cd.elf
|
|
|
|
$(CP) $(DL_DIR)/$(RPI_FIRMWARE_FILE)-start4x.elf $(PKG_BUILD_DIR)/start4x.elf
|
2016-04-01 11:37:33 +00:00
|
|
|
endef
|
|
|
|
|
2012-07-24 20:39:17 +00:00
|
|
|
define Build/Compile
|
2015-05-29 11:28:54 +00:00
|
|
|
true
|
|
|
|
endef
|
|
|
|
|
2020-02-08 20:58:55 +00:00
|
|
|
define Package/bcm27xx-gpu-fw/install
|
2015-05-29 11:28:54 +00:00
|
|
|
true
|
2012-07-24 20:39:17 +00:00
|
|
|
endef
|
|
|
|
|
2015-02-11 13:50:40 +00:00
|
|
|
define Build/InstallDev
|
2015-05-29 11:28:54 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/bootcode.bin $(KERNEL_BUILD_DIR)
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/LICENCE.broadcom $(KERNEL_BUILD_DIR)
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/start.elf $(KERNEL_BUILD_DIR)
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/start_cd.elf $(KERNEL_BUILD_DIR)
|
2018-12-04 21:27:59 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/start_x.elf $(KERNEL_BUILD_DIR)
|
2019-07-09 18:17:31 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/start4.elf $(KERNEL_BUILD_DIR)
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/start4cd.elf $(KERNEL_BUILD_DIR)
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/start4x.elf $(KERNEL_BUILD_DIR)
|
2015-05-29 11:28:54 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/fixup.dat $(KERNEL_BUILD_DIR)
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/fixup_cd.dat $(KERNEL_BUILD_DIR)
|
2018-12-04 21:27:59 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/fixup_x.dat $(KERNEL_BUILD_DIR)
|
2019-07-09 18:17:31 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/fixup4.dat $(KERNEL_BUILD_DIR)
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/fixup4cd.dat $(KERNEL_BUILD_DIR)
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/fixup4x.dat $(KERNEL_BUILD_DIR)
|
2015-02-11 13:50:40 +00:00
|
|
|
endef
|
|
|
|
|
2020-02-08 20:58:55 +00:00
|
|
|
$(eval $(call BuildPackage,bcm27xx-gpu-fw))
|