fe682aba3dd09fe83ea324426b2900620714d9f8
[openwrt/staging/chunkeey.git] / package / firmware / linux-firmware / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=linux-firmware
11 PKG_SOURCE_VERSION:=f8c22c692bdee57a20b092e647464ff6176df3ed
12 PKG_VERSION:=2014-03-16-$(PKG_SOURCE_VERSION)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_URL:=git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
19 PKG_MIRROR_MD5SUM:=ca4d289ad9380471cae376fc7dd3660a
20
21 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/r8169-firmware
26 SECTION:=firmware
27 CATEGORY:=Firmware
28 URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
29 TITLE:=RealTek r8169 firmware
30 endef
31
32 define Build/Compile
33
34 endef
35
36 define Package/r8169-firmware/install
37 $(INSTALL_DIR) $(1)/lib/firmware/rtl_nic
38 $(CP) \
39 $(PKG_BUILD_DIR)/rtl_nic/* \
40 $(1)/lib/firmware/rtl_nic
41 endef
42
43 $(eval $(call BuildPackage,r8169-firmware))
44
45 define Package/r8188eu-firmware
46 SECTION:=firmware
47 CATEGORY:=Firmware
48 URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
49 TITLE:=RealTek r8188eu firmware
50 endef
51
52 define Build/Compile
53
54 endef
55
56 define Package/r8188eu-firmware/install
57 $(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
58 $(CP) \
59 $(PKG_BUILD_DIR)/rtlwifi/rtl8188eufw.bin \
60 $(1)/lib/firmware/rtlwifi
61 endef
62
63 $(eval $(call BuildPackage,r8188eu-firmware))
64
65 define Package/ibt-firmware
66 SECTION:=firmware
67 CATEGORY:=Firmware
68 URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
69 TITLE:=Intel bluetooth firmware
70 endef
71
72 define Build/Compile
73
74 endef
75
76 define Package/ibt-firmware/install
77 $(INSTALL_DIR) $(1)/lib/firmware/intel
78 $(CP) \
79 $(PKG_BUILD_DIR)/intel/*.bseq \
80 $(1)/lib/firmware/intel
81 endef
82
83 $(eval $(call BuildPackage,ibt-firmware))
84
85 define Package/ar3k-firmware
86 SECTION:=firmware
87 CATEGORY:=Firmware
88 URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
89 TITLE:=ath3k firmware
90 endef
91
92 define Build/Compile
93
94 endef
95
96 define Package/ar3k-firmware/install
97 $(INSTALL_DIR) $(1)/lib/firmware/ar3k
98 $(CP) \
99 $(PKG_BUILD_DIR)/ar3k/*.dfu \
100 $(1)/lib/firmware/ar3k
101 endef
102
103 $(eval $(call BuildPackage,ar3k-firmware))