mt76: update to the latest version
[openwrt/openwrt.git] / package / kernel / mt76 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=mt76
4 PKG_RELEASE=4
5
6 PKG_LICENSE:=GPLv2
7 PKG_LICENSE_FILES:=
8
9 PKG_SOURCE_URL:=https://github.com/openwrt/mt76
10 PKG_SOURCE_PROTO:=git
11 PKG_SOURCE_DATE:=2022-09-06
12 PKG_SOURCE_VERSION:=d70546462b7b51ebc2bcdd5c534fdf3465be62a4
13 PKG_MIRROR_HASH:=3d6b68d70a78c0072ed10ab2548344b6b3a70ad99e4edc258fafa16886f4abf9
14
15 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
16 PKG_USE_NINJA:=0
17 PKG_BUILD_PARALLEL:=1
18
19 PKG_CONFIG_DEPENDS += \
20 CONFIG_PACKAGE_kmod-mt76-usb \
21 CONFIG_PACKAGE_kmod-mt76x02-common \
22 CONFIG_PACKAGE_kmod-mt76x0-common \
23 CONFIG_PACKAGE_kmod-mt76x0u \
24 CONFIG_PACKAGE_kmod-mt76x2-common \
25 CONFIG_PACKAGE_kmod-mt76x2 \
26 CONFIG_PACKAGE_kmod-mt76x2u \
27 CONFIG_PACKAGE_kmod-mt7603 \
28 CONFIG_PACKAGE_CFG80211_TESTMODE
29
30 STAMP_CONFIGURED_DEPENDS := $(STAGING_DIR)/usr/include/mac80211-backport/backport/autoconf.h
31
32 include $(INCLUDE_DIR)/kernel.mk
33 include $(INCLUDE_DIR)/package.mk
34 include $(INCLUDE_DIR)/cmake.mk
35
36 CMAKE_SOURCE_DIR:=$(PKG_BUILD_DIR)/tools
37 CMAKE_BINARY_DIR:=$(PKG_BUILD_DIR)/tools
38
39 define KernelPackage/mt76-default
40 SUBMENU:=Wireless Drivers
41 DEPENDS:= \
42 +kmod-mac80211 \
43 +@DRIVER_11AC_SUPPORT +@DRIVER_11N_SUPPORT
44 endef
45
46 define KernelPackage/mt76
47 SUBMENU:=Wireless Drivers
48 TITLE:=MediaTek MT76x2/MT7603 wireless driver (metapackage)
49 DEPENDS:= \
50 +kmod-mt76-core +kmod-mt76x2 +kmod-mt7603
51 endef
52
53 define KernelPackage/mt76-core
54 $(KernelPackage/mt76-default)
55 TITLE:=MediaTek MT76xx wireless driver
56 HIDDEN:=1
57 FILES:=\
58 $(PKG_BUILD_DIR)/mt76.ko
59 endef
60
61 define KernelPackage/mt76-usb
62 $(KernelPackage/mt76-default)
63 TITLE:=MediaTek MT76xx wireless driver USB support
64 DEPENDS += +kmod-usb-core +kmod-mt76-core
65 HIDDEN:=1
66 FILES:=\
67 $(PKG_BUILD_DIR)/mt76-usb.ko
68 endef
69
70 define KernelPackage/mt76x02-usb
71 $(KernelPackage/mt76-default)
72 TITLE:=MediaTek MT76x0/MT76x2 USB wireless driver common code
73 DEPENDS+=+kmod-mt76-usb +kmod-mt76x02-common
74 HIDDEN:=1
75 FILES:=$(PKG_BUILD_DIR)/mt76x02-usb.ko
76 endef
77
78 define KernelPackage/mt76x02-common
79 $(KernelPackage/mt76-default)
80 TITLE:=MediaTek MT76x0/MT76x2 wireless driver common code
81 DEPENDS+=+kmod-mt76-core
82 HIDDEN:=1
83 FILES:=$(PKG_BUILD_DIR)/mt76x02-lib.ko
84 endef
85
86 define KernelPackage/mt76x0-common
87 $(KernelPackage/mt76-default)
88 TITLE:=MediaTek MT76x0 wireless driver common code
89 DEPENDS+=+kmod-mt76x02-common
90 HIDDEN:=1
91 FILES:=$(PKG_BUILD_DIR)/mt76x0/mt76x0-common.ko
92 endef
93
94 define KernelPackage/mt76x0e
95 $(KernelPackage/mt76-default)
96 TITLE:=MediaTek MT76x0E wireless driver
97 DEPENDS+=@PCI_SUPPORT +kmod-mt76x0-common
98 FILES:=\
99 $(PKG_BUILD_DIR)/mt76x0/mt76x0e.ko
100 AUTOLOAD:=$(call AutoProbe,mt76x0e)
101 endef
102
103 define KernelPackage/mt76x0u
104 $(KernelPackage/mt76-default)
105 TITLE:=MediaTek MT76x0U wireless driver
106 DEPENDS+=+kmod-mt76x0-common +kmod-mt76x02-usb
107 FILES:=\
108 $(PKG_BUILD_DIR)/mt76x0/mt76x0u.ko
109 AUTOLOAD:=$(call AutoProbe,mt76x0u)
110 endef
111
112 define KernelPackage/mt76x2-common
113 $(KernelPackage/mt76-default)
114 TITLE:=MediaTek MT76x2 wireless driver common code
115 DEPENDS+=+kmod-mt76-core +kmod-mt76x02-common
116 HIDDEN:=1
117 FILES:=$(PKG_BUILD_DIR)/mt76x2/mt76x2-common.ko
118 endef
119
120 define KernelPackage/mt76x2u
121 $(KernelPackage/mt76-default)
122 TITLE:=MediaTek MT76x2U wireless driver
123 DEPENDS+=+kmod-mt76x2-common +kmod-mt76x02-usb
124 FILES:=\
125 $(PKG_BUILD_DIR)/mt76x2/mt76x2u.ko
126 AUTOLOAD:=$(call AutoProbe,mt76x2u)
127 endef
128
129 define KernelPackage/mt76x2
130 $(KernelPackage/mt76-default)
131 TITLE:=MediaTek MT76x2 wireless driver
132 DEPENDS+=@PCI_SUPPORT +kmod-mt76x2-common
133 FILES:=\
134 $(PKG_BUILD_DIR)/mt76x2/mt76x2e.ko
135 AUTOLOAD:=$(call AutoProbe,mt76x2e)
136 endef
137
138 define KernelPackage/mt7603
139 $(KernelPackage/mt76-default)
140 TITLE:=MediaTek MT7603 wireless driver
141 DEPENDS+=@PCI_SUPPORT +kmod-mt76-core
142 FILES:=\
143 $(PKG_BUILD_DIR)/mt7603/mt7603e.ko
144 AUTOLOAD:=$(call AutoProbe,mt7603e)
145 endef
146
147 define KernelPackage/mt76-connac
148 $(KernelPackage/mt76-default)
149 TITLE:=MediaTek MT7615/MT79xx wireless driver common code
150 HIDDEN:=1
151 DEPENDS+=+kmod-mt76-core
152 FILES:= $(PKG_BUILD_DIR)/mt76-connac-lib.ko
153 endef
154
155 define KernelPackage/mt76-sdio
156 $(KernelPackage/mt76-default)
157 TITLE:=MediaTek MT7615/MT79xx SDIO driver common code
158 HIDDEN:=1
159 DEPENDS+=+kmod-mt76-core +kmod-mmc
160 FILES:= $(PKG_BUILD_DIR)/mt76-sdio.ko
161 endef
162
163 define KernelPackage/mt7615-common
164 $(KernelPackage/mt76-default)
165 TITLE:=MediaTek MT7615 wireless driver common code
166 HIDDEN:=1
167 DEPENDS+=@PCI_SUPPORT +kmod-mt76-core +kmod-mt76-connac +kmod-hwmon-core
168 FILES:= $(PKG_BUILD_DIR)/mt7615/mt7615-common.ko
169 endef
170
171 define KernelPackage/mt7615-firmware
172 $(KernelPackage/mt76-default)
173 TITLE:=MediaTek MT7615e firmware
174 DEFAULT:=PACKAGE_kmod-mt7615e
175 endef
176
177 define KernelPackage/mt7615e
178 $(KernelPackage/mt76-default)
179 TITLE:=MediaTek MT7615e wireless driver
180 DEPENDS+=@PCI_SUPPORT +kmod-mt7615-common
181 FILES:= $(PKG_BUILD_DIR)/mt7615/mt7615e.ko
182 AUTOLOAD:=$(call AutoProbe,mt7615e)
183 endef
184
185 define KernelPackage/mt7663-firmware-ap
186 $(KernelPackage/mt76-default)
187 TITLE:=MediaTek MT7663e firmware (optimized for AP)
188 endef
189
190 define KernelPackage/mt7663-firmware-sta
191 $(KernelPackage/mt76-default)
192 TITLE:=MediaTek MT7663e firmware (client mode offload)
193 endef
194
195 define KernelPackage/mt7663-usb-sdio
196 $(KernelPackage/mt76-default)
197 TITLE:=MediaTek MT7663 USB/SDIO shared code
198 DEPENDS+=+kmod-mt7615-common
199 HIDDEN:=1
200 FILES:= \
201 $(PKG_BUILD_DIR)/mt7615/mt7663-usb-sdio-common.ko
202 endef
203
204 define KernelPackage/mt7663s
205 $(KernelPackage/mt76-default)
206 TITLE:=MediaTek MT7663s wireless driver
207 DEPENDS+=+kmod-mt76-sdio +kmod-mt7615-common +kmod-mt7663-usb-sdio
208 FILES:= \
209 $(PKG_BUILD_DIR)/mt7615/mt7663s.ko
210 AUTOLOAD:=$(call AutoProbe,mt7663s)
211 endef
212
213 define KernelPackage/mt7663u
214 $(KernelPackage/mt76-default)
215 TITLE:=MediaTek MT7663u wireless driver
216 DEPENDS+=+kmod-mt76-usb +kmod-mt7615-common +kmod-mt7663-usb-sdio
217 FILES:= $(PKG_BUILD_DIR)/mt7615/mt7663u.ko
218 AUTOLOAD:=$(call AutoProbe,mt7663u)
219 endef
220
221 define KernelPackage/mt7915e
222 $(KernelPackage/mt76-default)
223 TITLE:=MediaTek MT7915e wireless driver
224 DEPENDS+=@PCI_SUPPORT +kmod-mt7615-common +kmod-hwmon-core +kmod-thermal +@DRIVER_11AX_SUPPORT +@KERNEL_RELAY
225 FILES:= $(PKG_BUILD_DIR)/mt7915/mt7915e.ko
226 AUTOLOAD:=$(call AutoProbe,mt7915e)
227 endef
228
229 define KernelPackage/mt7986-firmware
230 $(KernelPackage/mt76-default)
231 DEPENDS:=@TARGET_mediatek_filogic
232 TITLE:=MediaTek MT7986 firmware
233 endef
234
235 define KernelPackage/mt7921-common
236 $(KernelPackage/mt76-default)
237 TITLE:=MediaTek MT7615 wireless driver common code
238 HIDDEN:=1
239 DEPENDS+=+kmod-mt76-connac +@DRIVER_11AX_SUPPORT
240 FILES:= $(PKG_BUILD_DIR)/mt7921/mt7921-common.ko
241 endef
242
243 define KernelPackage/mt7921u
244 $(KernelPackage/mt76-default)
245 TITLE:=MediaTek MT7921U wireless driver
246 DEPENDS+=+kmod-mt76-usb +kmod-mt7921-common
247 FILES:= $(PKG_BUILD_DIR)/mt7921/mt7921u.ko
248 AUTOLOAD:=$(call AutoProbe,mt7921u)
249 endef
250
251 define KernelPackage/mt7921s
252 $(KernelPackage/mt76-default)
253 TITLE:=MediaTek MT7921S wireless driver
254 DEPENDS+=+kmod-mt76-sdio +kmod-mt7921-common
255 FILES:= $(PKG_BUILD_DIR)/mt7921/mt7921s.ko
256 AUTOLOAD:=$(call AutoProbe,mt7921s)
257 endef
258
259 define KernelPackage/mt7921e
260 $(KernelPackage/mt76-default)
261 TITLE:=MediaTek MT7921e wireless driver
262 DEPENDS+=@PCI_SUPPORT +kmod-mt7921-common
263 FILES:= $(PKG_BUILD_DIR)/mt7921/mt7921e.ko
264 AUTOLOAD:=$(call AutoProbe,mt7921e)
265 endef
266
267 define Package/mt76-test
268 SECTION:=devel
269 CATEGORY:=Development
270 TITLE:=mt76 testmode CLI
271 DEPENDS:=kmod-mt76-core +libnl-tiny
272 endef
273
274 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny
275
276 NOSTDINC_FLAGS := \
277 $(KERNEL_NOSTDINC_FLAGS) \
278 -I$(PKG_BUILD_DIR) \
279 -I$(STAGING_DIR)/usr/include/mac80211-backport/uapi \
280 -I$(STAGING_DIR)/usr/include/mac80211-backport \
281 -I$(STAGING_DIR)/usr/include/mac80211/uapi \
282 -I$(STAGING_DIR)/usr/include/mac80211 \
283 -include backport/autoconf.h \
284 -include backport/backport.h
285
286 ifdef CONFIG_PACKAGE_MAC80211_MESH
287 NOSTDINC_FLAGS += -DCONFIG_MAC80211_MESH
288 endif
289
290 ifdef CONFIG_PACKAGE_CFG80211_TESTMODE
291 NOSTDINC_FLAGS += -DCONFIG_NL80211_TESTMODE
292 PKG_MAKE_FLAGS += CONFIG_NL80211_TESTMODE=y
293 endif
294
295 ifdef CONFIG_PACKAGE_kmod-mt76-usb
296 PKG_MAKE_FLAGS += CONFIG_MT76_USB=m
297 endif
298 ifdef CONFIG_PACKAGE_kmod-mt76x02-common
299 PKG_MAKE_FLAGS += CONFIG_MT76x02_LIB=m
300 endif
301 ifdef CONFIG_PACKAGE_kmod-mt76x02-usb
302 PKG_MAKE_FLAGS += CONFIG_MT76x02_USB=m
303 endif
304 ifdef CONFIG_PACKAGE_kmod-mt76x0-common
305 PKG_MAKE_FLAGS += CONFIG_MT76x0_COMMON=m
306 endif
307 ifdef CONFIG_PACKAGE_kmod-mt76x0e
308 PKG_MAKE_FLAGS += CONFIG_MT76x0E=m
309 endif
310 ifdef CONFIG_PACKAGE_kmod-mt76x0u
311 PKG_MAKE_FLAGS += CONFIG_MT76x0U=m
312 endif
313 ifdef CONFIG_PACKAGE_kmod-mt76x2-common
314 PKG_MAKE_FLAGS += CONFIG_MT76x2_COMMON=m
315 endif
316 ifdef CONFIG_PACKAGE_kmod-mt76x2
317 PKG_MAKE_FLAGS += CONFIG_MT76x2E=m
318 endif
319 ifdef CONFIG_PACKAGE_kmod-mt76x2u
320 PKG_MAKE_FLAGS += CONFIG_MT76x2U=m
321 endif
322 ifdef CONFIG_PACKAGE_kmod-mt7603
323 PKG_MAKE_FLAGS += CONFIG_MT7603E=m
324 endif
325 ifdef CONFIG_PACKAGE_kmod-mt76-connac
326 PKG_MAKE_FLAGS += CONFIG_MT76_CONNAC_LIB=m
327 endif
328 ifdef CONFIG_PACKAGE_kmod-mt76-sdio
329 PKG_MAKE_FLAGS += CONFIG_MT76_SDIO=m
330 endif
331 ifdef CONFIG_PACKAGE_kmod-mt7615-common
332 PKG_MAKE_FLAGS += CONFIG_MT7615_COMMON=m
333 endif
334 ifdef CONFIG_PACKAGE_kmod-mt7615e
335 PKG_MAKE_FLAGS += CONFIG_MT7615E=m
336 ifdef CONFIG_TARGET_mediatek_mt7622
337 PKG_MAKE_FLAGS += CONFIG_MT7622_WMAC=y
338 NOSTDINC_FLAGS += -DCONFIG_MT7622_WMAC
339 endif
340 endif
341 ifdef CONFIG_PACKAGE_kmod-mt7663-usb-sdio
342 PKG_MAKE_FLAGS += CONFIG_MT7663_USB_SDIO_COMMON=m
343 endif
344 ifdef CONFIG_PACKAGE_kmod-mt7663s
345 PKG_MAKE_FLAGS += CONFIG_MT7663S=m
346 endif
347 ifdef CONFIG_PACKAGE_kmod-mt7663u
348 PKG_MAKE_FLAGS += CONFIG_MT7663U=m
349 endif
350 ifdef CONFIG_PACKAGE_kmod-mt7915e
351 PKG_MAKE_FLAGS += CONFIG_MT7915E=m
352 ifdef CONFIG_TARGET_mediatek_filogic
353 PKG_MAKE_FLAGS += CONFIG_MT7986_WMAC=y
354 NOSTDINC_FLAGS += -DCONFIG_MT7986_WMAC
355 endif
356 endif
357 ifdef CONFIG_PACKAGE_kmod-mt7921-common
358 PKG_MAKE_FLAGS += CONFIG_MT7921_COMMON=m
359 endif
360 ifdef CONFIG_PACKAGE_kmod-mt7921u
361 PKG_MAKE_FLAGS += CONFIG_MT7921U=m
362 endif
363 ifdef CONFIG_PACKAGE_kmod-mt7921s
364 PKG_MAKE_FLAGS += CONFIG_MT7921S=m
365 endif
366 ifdef CONFIG_PACKAGE_kmod-mt7921e
367 PKG_MAKE_FLAGS += CONFIG_MT7921E=m
368 endif
369
370 define Build/Compile
371 +$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
372 $(KERNEL_MAKE_FLAGS) \
373 $(PKG_MAKE_FLAGS) \
374 M="$(PKG_BUILD_DIR)" \
375 NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \
376 modules
377 $(MAKE) -C $(PKG_BUILD_DIR)/tools
378 endef
379
380 define Build/Install
381 :
382 endef
383
384 define Package/kmod-mt76/install
385 true
386 endef
387
388 define KernelPackage/mt76x0-common/install
389 $(INSTALL_DIR) $(1)/lib/firmware/mediatek
390 cp \
391 $(PKG_BUILD_DIR)/firmware/mt7610e.bin \
392 $(1)/lib/firmware/mediatek
393 endef
394
395 define KernelPackage/mt76x2-common/install
396 $(INSTALL_DIR) $(1)/lib/firmware
397 cp \
398 $(PKG_BUILD_DIR)/firmware/mt7662_rom_patch.bin \
399 $(PKG_BUILD_DIR)/firmware/mt7662.bin \
400 $(1)/lib/firmware
401 endef
402
403 define KernelPackage/mt76x0u/install
404 $(INSTALL_DIR) $(1)/lib/firmware/mediatek
405 ln -sf mt7610e.bin $(1)/lib/firmware/mediatek/mt7610u.bin
406 endef
407
408 define KernelPackage/mt76x2u/install
409 $(INSTALL_DIR) $(1)/lib/firmware/mediatek
410 ln -sf ../mt7662.bin $(1)/lib/firmware/mediatek/mt7662u.bin
411 ln -sf ../mt7662_rom_patch.bin $(1)/lib/firmware/mediatek/mt7662u_rom_patch.bin
412 endef
413
414 define KernelPackage/mt7603/install
415 $(INSTALL_DIR) $(1)/lib/firmware
416 cp $(if $(CONFIG_TARGET_ramips_mt76x8), \
417 $(PKG_BUILD_DIR)/firmware/mt7628_e1.bin \
418 $(PKG_BUILD_DIR)/firmware/mt7628_e2.bin \
419 ,\
420 $(PKG_BUILD_DIR)/firmware/mt7603_e1.bin \
421 $(PKG_BUILD_DIR)/firmware/mt7603_e2.bin \
422 ) \
423 $(1)/lib/firmware
424 endef
425
426 define KernelPackage/mt7615-firmware/install
427 $(INSTALL_DIR) $(1)/lib/firmware/mediatek
428 cp \
429 $(PKG_BUILD_DIR)/firmware/mt7615_cr4.bin \
430 $(PKG_BUILD_DIR)/firmware/mt7615_n9.bin \
431 $(PKG_BUILD_DIR)/firmware/mt7615_rom_patch.bin \
432 $(if $(CONFIG_TARGET_mediatek_mt7622), \
433 $(PKG_BUILD_DIR)/firmware/mt7622_n9.bin \
434 $(PKG_BUILD_DIR)/firmware/mt7622_rom_patch.bin) \
435 $(1)/lib/firmware/mediatek
436 endef
437
438 define KernelPackage/mt7663-firmware-ap/install
439 $(INSTALL_DIR) $(1)/lib/firmware/mediatek
440 cp \
441 $(PKG_BUILD_DIR)/firmware/mt7663_n9_rebb.bin \
442 $(PKG_BUILD_DIR)/firmware/mt7663pr2h_rebb.bin \
443 $(1)/lib/firmware/mediatek
444 endef
445
446 define KernelPackage/mt7663-firmware-sta/install
447 $(INSTALL_DIR) $(1)/lib/firmware/mediatek
448 cp \
449 $(PKG_BUILD_DIR)/firmware/mt7663_n9_v3.bin \
450 $(PKG_BUILD_DIR)/firmware/mt7663pr2h.bin \
451 $(1)/lib/firmware/mediatek
452 endef
453
454 define KernelPackage/mt7915e/install
455 $(INSTALL_DIR) $(1)/lib/firmware/mediatek
456 cp \
457 $(PKG_BUILD_DIR)/firmware/mt7915_wa.bin \
458 $(PKG_BUILD_DIR)/firmware/mt7915_wm.bin \
459 $(PKG_BUILD_DIR)/firmware/mt7915_rom_patch.bin \
460 $(1)/lib/firmware/mediatek
461 endef
462
463 define KernelPackage/mt7986-firmware/install
464 $(INSTALL_DIR) $(1)/lib/firmware/mediatek
465 cp \
466 $(PKG_BUILD_DIR)/firmware/mt7986_wa.bin \
467 $(PKG_BUILD_DIR)/firmware/mt7986_wm_mt7975.bin \
468 $(PKG_BUILD_DIR)/firmware/mt7986_wm.bin \
469 $(PKG_BUILD_DIR)/firmware/mt7986_rom_patch_mt7975.bin \
470 $(PKG_BUILD_DIR)/firmware/mt7986_rom_patch.bin \
471 $(PKG_BUILD_DIR)/firmware/mt7986_eeprom_mt7975_dual.bin \
472 $(PKG_BUILD_DIR)/firmware/mt7986_eeprom_mt7976_dual.bin \
473 $(1)/lib/firmware/mediatek
474 endef
475
476 define KernelPackage/mt7921e/install
477 $(INSTALL_DIR) $(1)/lib/firmware/mediatek
478 cp \
479 $(PKG_BUILD_DIR)/firmware/WIFI_MT7961_patch_mcu_1_2_hdr.bin \
480 $(PKG_BUILD_DIR)/firmware/WIFI_RAM_CODE_MT7961_1.bin \
481 $(1)/lib/firmware/mediatek
482 endef
483
484 define Package/mt76-test/install
485 mkdir -p $(1)/usr/sbin
486 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/mt76-test $(1)/usr/sbin
487 endef
488
489 $(eval $(call KernelPackage,mt76-core))
490 $(eval $(call KernelPackage,mt76-usb))
491 $(eval $(call KernelPackage,mt76x02-usb))
492 $(eval $(call KernelPackage,mt76x02-common))
493 $(eval $(call KernelPackage,mt76x0-common))
494 $(eval $(call KernelPackage,mt76x0e))
495 $(eval $(call KernelPackage,mt76x0u))
496 $(eval $(call KernelPackage,mt76x2-common))
497 $(eval $(call KernelPackage,mt76x2u))
498 $(eval $(call KernelPackage,mt76x2))
499 $(eval $(call KernelPackage,mt7603))
500 $(eval $(call KernelPackage,mt76-connac))
501 $(eval $(call KernelPackage,mt76-sdio))
502 $(eval $(call KernelPackage,mt7615-common))
503 $(eval $(call KernelPackage,mt7615-firmware))
504 $(eval $(call KernelPackage,mt7615e))
505 $(eval $(call KernelPackage,mt7663-firmware-ap))
506 $(eval $(call KernelPackage,mt7663-firmware-sta))
507 $(eval $(call KernelPackage,mt7663-usb-sdio))
508 $(eval $(call KernelPackage,mt7663u))
509 $(eval $(call KernelPackage,mt7663s))
510 $(eval $(call KernelPackage,mt7915e))
511 $(eval $(call KernelPackage,mt7986-firmware))
512 $(eval $(call KernelPackage,mt7921-common))
513 $(eval $(call KernelPackage,mt7921u))
514 $(eval $(call KernelPackage,mt7921s))
515 $(eval $(call KernelPackage,mt7921e))
516 $(eval $(call KernelPackage,mt76))
517 $(eval $(call BuildPackage,mt76-test))