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
|
2021-08-21 17:05:14 +00:00
|
|
|
PKG_VERSION:=2021-08-19
|
|
|
|
PKG_RELEASE:=25e2b597ebfb2495eab4816a276758dcc6ea21f1
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=36fba28838867f26670a0cd1de340da62e13171cfdec0e7822737e849b3c0681
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=b06aa43aa668d6982de66044299d1b0dd6b449ec321dd83742aa1eb68774e15b
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=fff4fd9fbb691100be46269f554acd866eac8cfef39082e03ac12f70fbfe9d95
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=d74f97ae37cd476e6d4c8e466c3013be49e891e63b9aabc0c9b7637d85068cd0
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=a607f4dc3000c188f8daaa3417c70a9e5ecc039fae36ba46807c00294f89cd24
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=fff4fd9fbb691100be46269f554acd866eac8cfef39082e03ac12f70fbfe9d95
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=14ba09cba83d82a158481a7267fad06ada73c26c3a27dfd34694955f11ba6e27
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=8bee170c56529bf1666ad4afdd18ae18c7123e7a2fd30e2992cd0d9a01fa63ee
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=27d9354ff1af79a521527a288fe736f7337f91bca12bbc177c80e29dbbef0ffd
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=499bfdf3deba7bb0a033d2a4487b7f05bce45de2692c7c6dabc4a456237fd438
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=158bf783090223626cf45794bf679a3fadbf64bba55b76e3349b94e01be34202
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=c4912701f620cdd9e44bbacbfc4adb4be1b6fb7ccf81f6029ce2115511970cc0
|
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
|
2021-08-21 17:05:14 +00:00
|
|
|
HASH:=3eb1adb5dfef21da0a16679ef65314a64196a67c6fca3422df8bc721d6b6fa94
|
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))
|