linux-firmware: minor makefile cleanup
[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 Package/r8169-firmware/install
33 $(INSTALL_DIR) $(1)/lib/firmware/rtl_nic
34 $(CP) \
35 $(PKG_BUILD_DIR)/rtl_nic/* \
36 $(1)/lib/firmware/rtl_nic
37 endef
38
39 define Package/r8188eu-firmware
40 SECTION:=firmware
41 CATEGORY:=Firmware
42 URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
43 TITLE:=RealTek r8188eu firmware
44 endef
45
46 define Package/r8188eu-firmware/install
47 $(INSTALL_DIR) $(1)/lib/firmware/rtlwifi
48 $(CP) \
49 $(PKG_BUILD_DIR)/rtlwifi/rtl8188eufw.bin \
50 $(1)/lib/firmware/rtlwifi
51 endef
52
53 define Package/ibt-firmware
54 SECTION:=firmware
55 CATEGORY:=Firmware
56 URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
57 TITLE:=Intel bluetooth firmware
58 endef
59
60 define Package/ibt-firmware/install
61 $(INSTALL_DIR) $(1)/lib/firmware/intel
62 $(CP) \
63 $(PKG_BUILD_DIR)/intel/*.bseq \
64 $(1)/lib/firmware/intel
65 endef
66
67 define Package/ar3k-firmware
68 SECTION:=firmware
69 CATEGORY:=Firmware
70 URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
71 TITLE:=ath3k firmware
72 endef
73
74 define Package/ar3k-firmware/install
75 $(INSTALL_DIR) $(1)/lib/firmware/ar3k
76 $(CP) \
77 $(PKG_BUILD_DIR)/ar3k/*.dfu \
78 $(1)/lib/firmware/ar3k
79 endef
80
81 define Build/Compile
82
83 endef
84
85 $(eval $(call BuildPackage,ar3k-firmware))
86 $(eval $(call BuildPackage,ibt-firmware))
87 $(eval $(call BuildPackage,r8169-firmware))
88 $(eval $(call BuildPackage,r8188eu-firmware))