1 include $(TOPDIR
)/rules.mk
2 include $(INCLUDE_DIR
)/version.mk
8 include $(INCLUDE_DIR
)/package.mk
11 mkdir
-p
$(PKG_BUILD_DIR
)
17 # Use ath10k-bdencoder from https://github.com/qca/qca-swiss-army-knife.git
18 # to generate the board-* files here.
20 # This is intended to be used on an interim basis until device-specific
21 # board data for new devices is available through the upstream compilation
23 # Please send a mail with your device-specific board files upstream.
24 # You can find instructions and examples on the linux-wireless wiki:
25 # <https://wireless.wiki.kernel.org/en/users/drivers/ath10k/boardfiles>
29 avm_fritzrepeater-1200 \
31 ezviz_cs-w3-wd1200g-eup \
35 ALLWIFIPACKAGES
:=$(foreach BOARD
,$(ALLWIFIBOARDS
),ipq-wifi-
$(BOARD
))
37 define Package
/ipq-wifi-default
38 SUBMENU
:=ath10k Board-Specific Overrides
41 DEPENDS
:=@TARGET_ipq40xx
45 define ipq-wifi-install-one-to
46 $(INSTALL_DIR
) $(2)/lib
/firmware
/ath10k
/$(3)/
47 $(INSTALL_DATA
) $(1) $(2)/lib
/firmware
/ath10k
/$(3)/board-2.bin
50 # Note: .bin deprecated; supports existing boards
52 define ipq-wifi-install-one
53 $(if
$(filter $(suffix $(1)),.QCA4019 .qca4019 .bin
),\
54 $(call ipq-wifi-install-one-to
,$(1),$(2),QCA4019
/hw1.0
),\
55 $(if
$(filter $(suffix $(1)),.QCA9888 .qca9888
),\
56 $(call ipq-wifi-install-one-to
,$(1),$(2),QCA9888
/hw2.0
),\
57 $(if
$(filter $(suffix $(1)),.QCA9984 .qca9984
),\
58 $(call ipq-wifi-install-one-to
,$(1),$(2),QCA9984
/hw1.0
),\
59 $(error Unrecognized board-file
suffix '$(suffix $(1))' for
'$(1)')\
63 # Blank line required at end of above define due to foreach context
65 define generate-ipq-wifi-package
66 define Package
/ipq-wifi-
$(1)
67 $(call Package
/ipq-wifi-default
)
68 TITLE
:=board-2.bin Overrides for
$(2)
69 CONFLICTS
:=$(PREV_BOARD
)
72 define Package
/ipq-wifi-
$(1)/description
73 The
$(2) requires board-specific
, reference
("cal") data
74 that is not yet present in the upstream wireless firmware distribution.
76 This package supplies board-2.bin file
(s
) that
, in the interim
,
77 overwrite those supplied by the ath10k-firmware-
* packages.
79 This is package is only necessary for the
$(2).
81 Do not
install it for any other device
!
84 define Package
/ipq-wifi-
$(1)/install-overlay
85 $$$$(foreach IPQ_WIFI_BOARD_FILE
,$$$$(wildcard board-
$(1).
*),\
86 $$$$(call ipq-wifi-install-one
,$$$$(IPQ_WIFI_BOARD_FILE
),$$(1)))
89 PREV_BOARD
+=ipq-wifi-
$(1)
92 # Add board name to ALLWIFIBOARDS
93 # Place files in this directory as board-<devicename>.<qca4019|qca9888|qca9984>
94 # Add $(eval $(call generate-ipq-wifi-package,<devicename>,<display name>))
96 $(eval
$(call generate-ipq-wifi-package
,aruba_ap-303
,Aruba AP-303
))
97 $(eval
$(call generate-ipq-wifi-package
,avm_fritzrepeater-1200
,AVM FRITZRepeater
1200))
98 $(eval
$(call generate-ipq-wifi-package
,dlink_dap2610
,D-Link DAP-2610
))
99 $(eval
$(call generate-ipq-wifi-package
,ezviz_cs-w3-wd1200g-eup
,EZVIZ CS-W3-WD1200G EUP
))
100 $(eval
$(call generate-ipq-wifi-package
,linksys_ea8300
,Linksys EA8300
))
101 $(eval
$(call generate-ipq-wifi-package
,qxwlan_e2600ac
,Qxwlan E2600AC
))
103 $(foreach PACKAGE
,$(ALLWIFIPACKAGES
),$(eval
$(call BuildPackage
,$(PACKAGE
))))