1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/version.mk
8 include $(INCLUDE_DIR)/package.mk
11 mkdir -p $(PKG_BUILD_DIR)
18 # This is intended to be used on an interim basis until device-specific
19 # board data for new devices is available through the upstream compilation
21 # Please send a mail with your device-specific board files upstream.
22 # You can find instructions and examples on the linux-wireless wiki:
23 # <https://wireless.wiki.kernel.org/en/users/drivers/ath10k/boardfiles>
27 avm_fritzrepeater-1200 \
31 ALLWIFIPACKAGES:=$(foreach BOARD,$(ALLWIFIBOARDS),ipq-wifi-$(BOARD))
33 define Package/ipq-wifi-default
34 SUBMENU:=ath10k Board-Specific Overrides
37 DEPENDS:=@TARGET_ipq40xx
41 define ipq-wifi-install-one-to
42 $(INSTALL_DIR) $(2)/lib/firmware/ath10k/$(3)/
43 $(INSTALL_DATA) $(1) $(2)/lib/firmware/ath10k/$(3)/board-2.bin
46 # Note: .bin deprecated; supports existing boards
48 define ipq-wifi-install-one
49 $(if $(filter $(suffix $(1)),.QCA4019 .qca4019 .bin),\
50 $(call ipq-wifi-install-one-to,$(1),$(2),QCA4019/hw1.0),\
51 $(if $(filter $(suffix $(1)),.QCA9888 .qca9888),\
52 $(call ipq-wifi-install-one-to,$(1),$(2),QCA9888/hw2.0),\
53 $(if $(filter $(suffix $(1)),.QCA9984 .qca9984),\
54 $(call ipq-wifi-install-one-to,$(1),$(2),QCA9984/hw1.0),\
55 $(error Unrecognized board-file suffix '$(suffix $(1))' for '$(1)')\
59 # Blank line required at end of above define due to foreach context
61 define generate-ipq-wifi-package
62 define Package/ipq-wifi-$(1)
63 $(call Package/ipq-wifi-default)
64 TITLE:=board-2.bin Overrides for $(2)
65 CONFLICTS:=$(PREV_BOARD)
68 define Package/ipq-wifi-$(1)/description
69 The $(2) requires board-specific, reference ("cal") data
70 that is not yet present in the upstream wireless firmware distribution.
72 This package supplies board-2.bin file(s) that, in the interim,
73 overwrite those supplied by the ath10k-firmware-* packages.
75 This is package is only necessary for the $(2).
77 Do not install it for any other device!
80 define Package/ipq-wifi-$(1)/install-overlay
81 $$$$(foreach IPQ_WIFI_BOARD_FILE,$$$$(wildcard board-$(1).*),\
82 $$$$(call ipq-wifi-install-one,$$$$(IPQ_WIFI_BOARD_FILE),$$(1)))
85 PREV_BOARD+=ipq-wifi-$(1)
88 # Add board name to ALLWIFIBOARDS
89 # Place files in this directory as board-<devicename>.<qca4019|qca9888|qca9984>
90 # Add $(eval $(call generate-ipq-wifi-package,<devicename>,<display name>))
92 $(eval $(call generate-ipq-wifi-package,avm_fritzrepeater-1200,AVM FRITZRepeater 1200))
93 $(eval $(call generate-ipq-wifi-package,linksys_ea8300,Linksys EA8300))
94 $(eval $(call generate-ipq-wifi-package,qxwlan_e2600ac,Qxwlan E2600AC))
96 $(foreach PACKAGE,$(ALLWIFIPACKAGES),$(eval $(call BuildPackage,$(PACKAGE))))