Makefile 877 B

12345678910111213141516171819202122232425262728293031
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=wireless-regdb
  3. PKG_VERSION:=2019.06.03
  4. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  5. PKG_SOURCE_URL:=@KERNEL/software/network/wireless-regdb/
  6. PKG_HASH:=cd917ed86b63ce8d93947979f1f18948f03a4ac0ad89ec25227b36ac00dc54bf
  7. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  8. include $(INCLUDE_DIR)/package.mk
  9. define Package/wireless-regdb
  10. PKGARCH:=all
  11. SECTION:=firmware
  12. CATEGORY:=Firmware
  13. URL:=https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/
  14. TITLE:=Wireless Regulatory Database
  15. endef
  16. define Build/Compile
  17. $(STAGING_DIR_HOST)/bin/$(PYTHON) $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db $(PKG_BUILD_DIR)/db.txt
  18. endef
  19. define Package/wireless-regdb/install
  20. $(INSTALL_DIR) $(1)/lib/firmware
  21. $(CP) $(PKG_BUILD_DIR)/regulatory.db $(1)/lib/firmware/
  22. endef
  23. $(eval $(call BuildPackage,wireless-regdb))