1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/version.mk
6 include $(INCLUDE_DIR)/package.mk
9 mkdir -p $(PKG_BUILD_DIR)
15 ALLWIFIBOARDS:=rt-ac58u fritz4040 nbg6617
16 ALLWIFIPACKAGES:=$(foreach BOARD,$(ALLWIFIBOARDS),ipq-wifi-$(BOARD))
18 define Package/ipq-wifi-default
19 SUBMENU:=ath10k IPQ4019 Boarddata
22 DEPENDS:=@TARGET_ipq806x +ath10k-firmware-qca4019
26 define generate-ipq-wifi-package
27 define Package/ipq-wifi-$(1)
28 $(call Package/ipq-wifi-default)
30 CONFLICTS:=$(PREV_BOARD)
33 define Package/ipq-wifi-$(1)/description
34 This device custom package board-2.bin overwrites the board-2.bin
35 file which is supplied by the ath10k-firmware-qca4019 package.
37 This is package is only necessary for the $(3).
38 Don't install it for any other device!
41 define Package/ipq-wifi-$(1)/install-overlay
42 $(INSTALL_DIR) $$(1)/lib/firmware/ath10k/QCA4019/hw1.0
43 $(INSTALL_DATA) ./$(2) $$(1)/lib/firmware/ath10k/QCA4019/hw1.0/board-2.bin
46 PREV_BOARD+=ipq-wifi-$(1)
49 $(eval $(call generate-ipq-wifi-package,rt-ac58u,board-rt-ac58u.bin,ASUS RT-AC58U/RT-ACRH13))
50 $(eval $(call generate-ipq-wifi-package,fritz4040,board-fritz4040.bin,AVM FRITZBox 4040))
51 $(eval $(call generate-ipq-wifi-package,nbg6617,board-nbg6617.bin,ZyXEL NBG6617))
53 $(foreach PACKAGE,$(ALLWIFIPACKAGES),$(eval $(call BuildPackage,$(PACKAGE))))