linux-firmware: remove duplication in package metadata
[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/firmware-default
27 SECTION:=firmware
28 CATEGORY:=Firmware
29 URL:=http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git
30 TITLE:=$(1)
31 endef
32
33 define Build/Compile
34
35 endef
36
37 Package/ibt-firmware = $(call Package/firmware-default,Intel bluetooth firmware)
38 define Package/ibt-firmware/install
39 $(INSTALL_DIR) $(1)/lib/firmware/intel
40 $(CP) \
41 $(PKG_BUILD_DIR)/intel/*.bseq \
42 $(1)/lib/firmware/intel
43 endef
44 $(eval $(call BuildPackage,ibt-firmware))
45
46 Package/ar3k-firmware = $(call Package/firmware-default,ath3k firmware)
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 $(eval $(call BuildPackage,ar3k-firmware))
54
55 include $(wildcard ./*.mk)