diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-11-05 22:34:33 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-11-16 15:23:32 +0100 |
commit | a8d751c243b9d840b97293b289adddb0df438358 (patch) | |
tree | e70dee99b948f43656a4e57b5b82d87a53102eb7 /package/firmware/wireless-regdb/Makefile | |
parent | 4b091ab01a8f73a639e52b74ac789fb7dd388840 (diff) | |
download | upstream-a8d751c243b9d840b97293b289adddb0df438358.tar.gz upstream-a8d751c243b9d840b97293b289adddb0df438358.tar.bz2 upstream-a8d751c243b9d840b97293b289adddb0df438358.zip |
wireless-regdb: add package containing the wireless regulatory database
Installs to /lib/firmware for newer cfg80211 versions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/firmware/wireless-regdb/Makefile')
-rw-r--r-- | package/firmware/wireless-regdb/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/package/firmware/wireless-regdb/Makefile b/package/firmware/wireless-regdb/Makefile new file mode 100644 index 0000000000..fa732b2d38 --- /dev/null +++ b/package/firmware/wireless-regdb/Makefile @@ -0,0 +1,31 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=wireless-regdb + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git +PKG_SOURCE_DATE:=2017-10-20 +PKG_SOURCE_VERSION:=4343d359ed5e7404de8803a74df186457b26ab79 +PKG_MIRROR_HASH:=b827bf760de57b907df159c8d38d7c3fb5b4a691781114c47739e20bffb3a312 + +PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name> + +include $(INCLUDE_DIR)/package.mk + +define Package/wireless-regdb + SECTION:=firmware + CATEGORY:=Firmware + URL:=$(patsubst pub/scm,cgit,$(PKG_SOURCE_URL)) + TITLE:=Wireless Regulatory Database +endef + +define Build/Compile + python $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt +endef + +define Package/wireless-regdb/install + $(INSTALL_DIR) $(1)/lib/firmware + $(CP) $(PKG_BUILD_DIR)/regulatory.db $(1)/lib/firmware/ +endef + +$(eval $(call BuildPackage,wireless-regdb)) |