brcm2708-gpu-fw: revert to github releases, adapt to bcm2708 target changes and add...
[openwrt/staging/wigyori.git] / package / kernel / brcm2708-gpu-fw / Makefile
1 #
2 # Copyright (C) 2012-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/kernel.mk
9
10 PKG_NAME:=brcm2708-gpu-fw
11 PKG_REV:=38aa676b044f8de46aedb4bd972538a7ad6a3ce1
12 PKG_VERSION:=20150210
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_REV).tar.gz
16 PKG_SOURCE_URL:=https://github.com/Hexxeh/rpi-firmware/archive/
17 PKG_MD5SUM:=f5683c1dcb255714942f7c9fd61b3a0a
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/rpi-firmware-$(PKG_REV)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/brcm2708-gpu-fw
24 SECTION:=boot
25 CATEGORY:=Boot Loaders
26 DEPENDS:=@(TARGET_brcm2708_bcm2708||TARGET_brcm2708_bcm2709)
27 TITLE:=brcm2708-gpu-fw
28 DEFAULT:=y if (TARGET_brcm2708_bcm2708||TARGET_brcm2708_bcm2709)
29 endef
30
31 define Package/brcm2708-gpu-fw/description
32 GPU and kernel boot firmware for brcm2708.
33 endef
34
35 define Build/Compile
36 endef
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(BUILD_DIR)/brcm2708-gpu-fw-boot
40 $(CP) $(PKG_BUILD_DIR)/* $(BUILD_DIR)/brcm2708-gpu-fw-boot
41 endef
42
43 $(eval $(call BuildPackage,brcm2708-gpu-fw))
44