1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
27bc04215SFelix Fietkauobj-$(CONFIG_MT76_CORE) += mt76.o
3b40b15e1SLorenzo Bianconiobj-$(CONFIG_MT76_USB) += mt76-usb.o
4d39b52e3SSean Wangobj-$(CONFIG_MT76_SDIO) += mt76-sdio.o
5108a4861SStanislaw Gruszkaobj-$(CONFIG_MT76x02_LIB) += mt76x02-lib.o
6905db747SLorenzo Bianconiobj-$(CONFIG_MT76x02_USB) += mt76x02-usb.o
7d0e274afSLorenzo Bianconiobj-$(CONFIG_MT76_CONNAC_LIB) += mt76-connac-lib.o
8*c74df1c0SLorenzo Bianconiobj-$(CONFIG_MT792x_LIB) += mt792x-lib.o
97bc04215SFelix Fietkau
107bc04215SFelix Fietkaumt76-y := \
119df0fab9SLorenzo Bianconi	mmio.o util.o trace.o dma.o mac80211.o debugfs.o eeprom.o \
1285b7a5d0SLorenzo Bianconi	tx.o agg-rx.o mcu.o
137bc04215SFelix Fietkau
14f37f0550SLorenzo Bianconimt76-$(CONFIG_PCI) += pci.o
15f0efa862SFelix Fietkaumt76-$(CONFIG_NL80211_TESTMODE) += testmode.o
16f37f0550SLorenzo Bianconi
17fc994dbbSStanislaw Gruszkamt76-usb-y := usb.o usb_trace.o
18764dee47SLorenzo Bianconimt76-sdio-y := sdio.o sdio_txrx.o
19b40b15e1SLorenzo Bianconi
207bc04215SFelix FietkauCFLAGS_trace.o := -I$(src)
21b40b15e1SLorenzo BianconiCFLAGS_usb_trace.o := -I$(src)
223e2342edSLorenzo BianconiCFLAGS_mt76x02_trace.o := -I$(src)
23*c74df1c0SLorenzo BianconiCFLAGS_mt792x_trace.o := -I$(src)
247bc04215SFelix Fietkau
25bd724b8fSLorenzo Bianconimt76x02-lib-y := mt76x02_util.o mt76x02_mac.o mt76x02_mcu.o \
268e3ed001SLorenzo Bianconi		 mt76x02_eeprom.o mt76x02_phy.o mt76x02_mmio.o \
27e6cb3291SLorenzo Bianconi		 mt76x02_txrx.o mt76x02_trace.o mt76x02_debugfs.o \
288d71aef9SStanislaw Gruszka		 mt76x02_dfs.o mt76x02_beacon.o
29108a4861SStanislaw Gruszka
30c2db13acSLorenzo Bianconimt76x02-usb-y := mt76x02_usb_mcu.o mt76x02_usb_core.o
31905db747SLorenzo Bianconi
3246d3304dSLorenzo Bianconimt76-connac-lib-y := mt76_connac_mcu.o mt76_connac_mac.o mt76_connac3_mac.o
33d0e274afSLorenzo Bianconi
34*c74df1c0SLorenzo Bianconimt792x-lib-y := mt792x_core.o mt792x_mac.o mt792x_trace.o
35*c74df1c0SLorenzo Bianconi
361613c621SLorenzo Bianconiobj-$(CONFIG_MT76x0_COMMON) += mt76x0/
371613c621SLorenzo Bianconiobj-$(CONFIG_MT76x2_COMMON) += mt76x2/
38c8846e10SFelix Fietkauobj-$(CONFIG_MT7603E) += mt7603/
39e90354e0SLorenzo Bianconiobj-$(CONFIG_MT7615_COMMON) += mt7615/
40e57b7901SRyder Leeobj-$(CONFIG_MT7915E) += mt7915/
41f7d55d2eSArnd Bergmannobj-$(CONFIG_MT7921_COMMON) += mt7921/
4298686cd2SShayne Chenobj-$(CONFIG_MT7996E) += mt7996/
43