2
0

Makefile 884 B

12345678910111213141516171819202122232425262728293031
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=wireless-regdb
  3. PKG_SOURCE_PROTO:=git
  4. PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git
  5. PKG_SOURCE_DATE:=2017-10-20
  6. PKG_SOURCE_VERSION:=4343d359ed5e7404de8803a74df186457b26ab79
  7. PKG_MIRROR_HASH:=5f5b669f32ae36cb65b1d99efbbbfd42c2983cda32f6448346e3e54ffaba3889
  8. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  9. include $(INCLUDE_DIR)/package.mk
  10. define Package/wireless-regdb
  11. SECTION:=firmware
  12. CATEGORY:=Firmware
  13. URL:=$(patsubst pub/scm,cgit,$(PKG_SOURCE_URL))
  14. TITLE:=Wireless Regulatory Database
  15. endef
  16. define Build/Compile
  17. 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))