mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
3e9c06d78c
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
113 lines
3.3 KiB
Makefile
113 lines
3.3 KiB
Makefile
#
|
|
# Copyright (C) 2012-2016 OpenWrt.org
|
|
# Copyright (C) 2017 LEDE project
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=brcm2708-gpu-fw
|
|
PKG_VERSION:=2017-08-08
|
|
PKG_RELEASE:=e7ba7ab135f5a68b2c00a919ea9ac8d5528a5d5b
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)/rpi-firmware-$(PKG_RELEASE)
|
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
RPI_FIRMWARE_URL:=@GITHUB/raspberrypi/firmware/$(PKG_RELEASE)/boot/
|
|
RPI_FIRMWARE_FILE:=rpi-firmware-$(PKG_RELEASE)
|
|
|
|
define Download/LICENCE_broadcom
|
|
FILE:=$(RPI_FIRMWARE_FILE)-LICENCE.broadcom
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
URL_FILE:=LICENCE.broadcom
|
|
HASH:=ba76edfc10a248166d965b8eaf320771c44f4f432d4fce2fd31fd272e7038add
|
|
endef
|
|
$(eval $(call Download,LICENCE_broadcom))
|
|
|
|
define Download/bootcode_bin
|
|
FILE:=$(RPI_FIRMWARE_FILE)-bootcode.bin
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
URL_FILE:=bootcode.bin
|
|
HASH:=b5928ef5253774362014f9e7de856397a932514fe1bc5d7f7817a73c0e10e863
|
|
endef
|
|
$(eval $(call Download,bootcode_bin))
|
|
|
|
define Download/fixup_dat
|
|
FILE:=$(RPI_FIRMWARE_FILE)-fixup.dat
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
URL_FILE:=fixup.dat
|
|
HASH:=d95fcac57de7ab71e863a115fd60444f6099cb2ea100f4a68b2c606f79e775ed
|
|
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
|
|
HASH:=28f3ec8388df4e0c47489f8370a29ca81dbc536fe7db9978342865b5d093ec36
|
|
endef
|
|
$(eval $(call Download,fixup_cd_dat))
|
|
|
|
define Download/start_elf
|
|
FILE:=$(RPI_FIRMWARE_FILE)-start.elf
|
|
URL:=$(RPI_FIRMWARE_URL)
|
|
URL_FILE:=start.elf
|
|
HASH:=8712fb4e241a22f7a33de0f1d420e0fdfff237952aa685c907b91e59c8d487fa
|
|
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
|
|
HASH:=c600ab34bea389da10aac541bf2f9c62e5f774093b7e1f2f72c4637f9cf3a83c
|
|
endef
|
|
$(eval $(call Download,start_cd_elf))
|
|
|
|
define Package/brcm2708-gpu-fw
|
|
SECTION:=boot
|
|
CATEGORY:=Boot Loaders
|
|
DEPENDS:=@TARGET_brcm2708
|
|
TITLE:=brcm2708-gpu-fw
|
|
DEFAULT:=y if TARGET_brcm2708
|
|
endef
|
|
|
|
define Package/brcm2708-gpu-fw/description
|
|
GPU and kernel boot firmware for brcm2708.
|
|
endef
|
|
|
|
define Build/Prepare
|
|
rm -rf $(PKG_BUILD_DIR)
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
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)-start.elf $(PKG_BUILD_DIR)/start.elf
|
|
cp $(DL_DIR)/$(RPI_FIRMWARE_FILE)-start_cd.elf $(PKG_BUILD_DIR)/start_cd.elf
|
|
endef
|
|
|
|
define Build/Compile
|
|
true
|
|
endef
|
|
|
|
define Package/brcm2708-gpu-fw/install
|
|
true
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(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)
|
|
$(CP) $(PKG_BUILD_DIR)/fixup.dat $(KERNEL_BUILD_DIR)
|
|
$(CP) $(PKG_BUILD_DIR)/fixup_cd.dat $(KERNEL_BUILD_DIR)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,brcm2708-gpu-fw))
|