Makefile 888 B

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