linux-firmware: add a new package for firmware (currently only builds r8169 firmware)
[openwrt/svn-archive/archive.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))