2 # Copyright (C) 2012-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/kernel.mk
10 PKG_NAME:=brcm2708-gpu-fw
11 PKG_REV:=d4945b3b77d29cc5bb3777734422c048c1f1d003
15 PKG_SOURCE:=$(PKG_REV).tar.gz
16 PKG_SOURCE_URL:=https://github.com/Hexxeh/rpi-firmware/archive/
17 PKG_MD5SUM:=18fe2d11acf9e277f7b3fb2cd18eabfb
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/rpi-firmware-$(PKG_REV)
21 include $(INCLUDE_DIR)/package.mk
23 define Package/brcm2708-gpu-fw
25 CATEGORY:=Boot Loaders
26 DEPENDS:=@TARGET_brcm2708
27 TITLE:=brcm2708-gpu-fw
28 DEFAULT:=y if TARGET_brcm2708
31 define Package/brcm2708-gpu-fw/description
32 GPU and kernel boot firmware for brcm2708.
39 define Package/brcm2708-gpu-fw/install
43 define Build/InstallDev
44 $(CP) $(PKG_BUILD_DIR)/bootcode.bin $(KERNEL_BUILD_DIR)
45 $(CP) $(PKG_BUILD_DIR)/COPYING.linux $(KERNEL_BUILD_DIR)
46 $(CP) $(PKG_BUILD_DIR)/LICENCE.broadcom $(KERNEL_BUILD_DIR)
47 $(CP) $(PKG_BUILD_DIR)/start.elf $(KERNEL_BUILD_DIR)
48 $(CP) $(PKG_BUILD_DIR)/start_cd.elf $(KERNEL_BUILD_DIR)
49 $(CP) $(PKG_BUILD_DIR)/fixup.dat $(KERNEL_BUILD_DIR)
50 $(CP) $(PKG_BUILD_DIR)/fixup_cd.dat $(KERNEL_BUILD_DIR)
53 $(eval $(call BuildPackage,brcm2708-gpu-fw))