5484af05be8c2eafdc157d893c3aa31d8275e2e3
[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:=d4945b3b77d29cc5bb3777734422c048c1f1d003
12 PKG_VERSION:=20150712
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:=18fe2d11acf9e277f7b3fb2cd18eabfb
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
27 TITLE:=brcm2708-gpu-fw
28 DEFAULT:=y if TARGET_brcm2708
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 true
37 endef
38
39 define Package/brcm2708-gpu-fw/install
40 true
41 endef
42
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)
51 endef
52
53 $(eval $(call BuildPackage,brcm2708-gpu-fw))