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 devolo_magic-2-wifi-next \
35 extreme-networks_ws-ap3915i \
47 sony_ncp-hg100-cellular \
55 ALLWIFIPACKAGES
:=$(foreach BOARD
,$(ALLWIFIBOARDS
),ipq-wifi-
$(BOARD
))
57 define Package
/ipq-wifi-default
58 SUBMENU
:=ath10k Board-Specific Overrides
61 DEPENDS
:=@
(TARGET_ipq40xx||TARGET_ipq806x||TARGET_ipq807x
)
65 define ipq-wifi-install-one-to
66 $(INSTALL_DIR
) $(2)/lib
/firmware
/ath10k
/$(3)/
67 $(INSTALL_DATA
) $(1) $(2)/lib
/firmware
/ath10k
/$(3)/board-2.bin
70 define ipq-wifi-install-ath11-one-to
71 $(INSTALL_DIR
) $(2)/lib
/firmware
/ath11k
/$(3)/
72 $(INSTALL_DATA
) $(1) $(2)/lib
/firmware
/ath11k
/$(3)/board-2.bin
75 define ipq-wifi-install-one
76 $(if
$(filter $(suffix $(1)),.QCA4019 .qca4019
),\
77 $(call ipq-wifi-install-one-to
,$(1),$(2),QCA4019
/hw1.0
),\
78 $(if
$(filter $(suffix $(1)),.QCA9888 .qca9888
),\
79 $(call ipq-wifi-install-one-to
,$(1),$(2),QCA9888
/hw2.0
),\
80 $(if
$(filter $(suffix $(1)),.QCA9889 .qca9889
),\
81 $(call ipq-wifi-install-one-to
,$(1),$(2),QCA9887
/hw1.0
),\
82 $(if
$(filter $(suffix $(1)),.QCA9984 .qca9984
),\
83 $(call ipq-wifi-install-one-to
,$(1),$(2),QCA9984
/hw1.0
),\
84 $(if
$(filter $(suffix $(1)),.QCA99X0 .qca99x0
),\
85 $(call ipq-wifi-install-one-to
,$(1),$(2),QCA99X0
/hw2.0
),\
86 $(if
$(filter $(suffix $(1)),.IPQ8074 .ipq8074
),\
87 $(call ipq-wifi-install-ath11-one-to
,$(1),$(2),IPQ8074
/hw2.0
),\
88 $(if
$(filter $(suffix $(1)),.QCN9074 .qcn9074
),\
89 $(call ipq-wifi-install-ath11-one-to
,$(1),$(2),QCN9074
/hw1.0
),\
90 $(error Unrecognized board-file
suffix '$(suffix $(1))' for
'$(1)')\
94 # Blank line required at end of above define due to foreach context
96 define generate-ipq-wifi-package
97 define Package
/ipq-wifi-
$(1)
98 $(call Package
/ipq-wifi-default
)
99 TITLE
:=board-2.bin Overrides for
$(2)
100 CONFLICTS
:=$(PREV_BOARD
)
103 define Package
/ipq-wifi-
$(1)/description
104 The
$(2) requires board-specific
, reference
("cal") data
105 that is not yet present in the upstream wireless firmware distribution.
107 This package supplies board-2.bin file
(s
) that
, in the interim
,
108 overwrite those supplied by the ath10k-firmware-
* packages.
110 This is package is only necessary for the
$(2).
112 Do not
install it for any other device
!
115 define Package
/ipq-wifi-
$(1)/install-overlay
116 $$$$(foreach IPQ_WIFI_BOARD_FILE
,$$$$(wildcard board-
$(1).
*),\
117 $$$$(call ipq-wifi-install-one
,$$$$(IPQ_WIFI_BOARD_FILE
),$$(1)))
120 PREV_BOARD
+=ipq-wifi-
$(1)
123 # Add board name to ALLWIFIBOARDS
124 # Place files in this directory as board-<devicename>.<qca4019|qca9888|qca9889|qca9984|qca99x0|ipq8074>
125 # Add $(eval $(call generate-ipq-wifi-package,<devicename>,<display name>))
127 $(eval
$(call generate-ipq-wifi-package
,aruba_ap-365
,Aruba AP-365
))
128 $(eval
$(call generate-ipq-wifi-package
,devolo_magic-2-wifi-next
,devolo Magic
2 WiFi next
))
129 $(eval
$(call generate-ipq-wifi-package
,dynalink_dl-wrx36
,Dynalink DL-WRX36
))
130 $(eval
$(call generate-ipq-wifi-package
,edgecore_eap102
,Edgecore EAP102
))
131 $(eval
$(call generate-ipq-wifi-package
,edgecore_ecw5410
,Edgecore ECW5410
))
132 $(eval
$(call generate-ipq-wifi-package
,edgecore_oap100
,Edgecore OAP100
))
133 $(eval
$(call generate-ipq-wifi-package
,edimax_cax1800
,Edimax CAX1800
))
134 $(eval
$(call generate-ipq-wifi-package
,extreme-networks_ws-ap3915i
,Edgecore OAP100
))
135 $(eval
$(call generate-ipq-wifi-package
,glinet_gl-a1300
,GL.iNet GL-A1300
))
136 $(eval
$(call generate-ipq-wifi-package
,glinet_gl-ap1300
,GL.iNet GL-AP1300
))
137 $(eval
$(call generate-ipq-wifi-package
,glinet_gl-s1300
,GL.iNet GL-S1300
))
138 $(eval
$(call generate-ipq-wifi-package
,linksys_ea8300
,Linksys EA8300
))
139 $(eval
$(call generate-ipq-wifi-package
,linksys_whw03v2
,Linksys WHW03 V2
))
140 $(eval
$(call generate-ipq-wifi-package
,p2w_r619ac
,P
&W R619AC
))
141 $(eval
$(call generate-ipq-wifi-package
,pakedge_wr-1
,Pakedge WR-1
))
142 $(eval
$(call generate-ipq-wifi-package
,qnap_301w
,QNAP
301w
))
143 $(eval
$(call generate-ipq-wifi-package
,qxwlan_e2600ac-c1
,Qxwlan E2600AC C1
))
144 $(eval
$(call generate-ipq-wifi-package
,qxwlan_e2600ac-c2
,Qxwlan E2600AC C2
))
145 $(eval
$(call generate-ipq-wifi-package
,redmi_ax6
,Redmi AX6
))
146 $(eval
$(call generate-ipq-wifi-package
,sony_ncp-hg100-cellular
,Sony NCP-HG100
/Cellular
))
147 $(eval
$(call generate-ipq-wifi-package
,teltonika_rutx
,Teltonika RUTX
))
148 $(eval
$(call generate-ipq-wifi-package
,xiaomi_ax3600
,Xiaomi AX3600
))
149 $(eval
$(call generate-ipq-wifi-package
,xiaomi_ax9000
,Xiaomi AX9000
))
150 $(eval
$(call generate-ipq-wifi-package
,zte_mf18a
,ZTE MF18A
))
151 $(eval
$(call generate-ipq-wifi-package
,zte_mf289f
,ZTE MF289F
))
152 $(eval
$(call generate-ipq-wifi-package
,zyxel_nbg7815
,Zyxel NBG7815
))
154 $(foreach PACKAGE
,$(ALLWIFIPACKAGES
),$(eval
$(call BuildPackage
,$(PACKAGE
))))