linux-firmware: move realtek firmware packages to realtek.mk
[openwrt/openwrt.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:=bbe4917c054eb0a73e250c6363341e3bf6725839
12 PKG_VERSION:=2015-12-07-$(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_SOURCE_VERSION)
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
19 PKG_SOURCE_URL:=git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
20 PKG_MIRROR_MD5SUM:=ca4d289ad9380471cae376fc7dd3660a
21
22 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/ibt-firmware
27 SECTION:=firmware
28 CATEGORY:=Firmware
29 URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
30 TITLE:=Intel bluetooth firmware
31 endef
32
33 define Package/ibt-firmware/install
34 $(INSTALL_DIR) $(1)/lib/firmware/intel
35 $(CP) \
36 $(PKG_BUILD_DIR)/intel/*.bseq \
37 $(1)/lib/firmware/intel
38 endef
39
40 define Package/ar3k-firmware
41 SECTION:=firmware
42 CATEGORY:=Firmware
43 URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
44 TITLE:=ath3k firmware
45 endef
46
47 define Package/ar3k-firmware/install
48 $(INSTALL_DIR) $(1)/lib/firmware/ar3k
49 $(CP) \
50 $(PKG_BUILD_DIR)/ar3k/*.dfu \
51 $(1)/lib/firmware/ar3k
52 endef
53
54 define Build/Compile
55
56 endef
57
58 include $(wildcard ./*.mk)
59
60 $(eval $(call BuildPackage,ar3k-firmware))
61 $(eval $(call BuildPackage,ibt-firmware))