2017-11-05 21:34:33 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=wireless-regdb
|
2021-05-21 12:29:31 +00:00
|
|
|
PKG_VERSION:=2021.04.21
|
2020-04-25 12:56:20 +00:00
|
|
|
PKG_RELEASE:=1
|
2017-11-05 21:34:33 +00:00
|
|
|
|
2019-06-05 10:58:19 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=@KERNEL/software/network/wireless-regdb/
|
2021-05-21 12:29:31 +00:00
|
|
|
PKG_HASH:=9e4c02b2a9710df4dbdb327c39612e8cbbae6495987afeddaebab28c1ea3d8fa
|
2017-11-05 21:34:33 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/wireless-regdb
|
2019-07-29 22:33:12 +00:00
|
|
|
PKGARCH:=all
|
|
|
|
SECTION:=firmware
|
|
|
|
CATEGORY:=Firmware
|
|
|
|
URL:=https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/
|
|
|
|
TITLE:=Wireless Regulatory Database
|
2017-11-05 21:34:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2019-07-31 16:11:01 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/$(PYTHON) $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt
|
2017-11-05 21:34:33 +00:00
|
|
|
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))
|