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
8c74df1c0SLorenzo Bianconiobj-$(CONFIG_MT792x_LIB) += mt792x-lib.o
9*d28e1a48SLorenzo Bianconiobj-$(CONFIG_MT792x_USB) += mt792x-usb.o
107bc04215SFelix Fietkau
117bc04215SFelix Fietkaumt76-y := \
129df0fab9SLorenzo Bianconi	mmio.o util.o trace.o dma.o mac80211.o debugfs.o eeprom.o \
1385b7a5d0SLorenzo Bianconi	tx.o agg-rx.o mcu.o
147bc04215SFelix Fietkau
15f37f0550SLorenzo Bianconimt76-$(CONFIG_PCI) += pci.o
16f0efa862SFelix Fietkaumt76-$(CONFIG_NL80211_TESTMODE) += testmode.o
17f37f0550SLorenzo Bianconi
18fc994dbbSStanislaw Gruszkamt76-usb-y := usb.o usb_trace.o
19764dee47SLorenzo Bianconimt76-sdio-y := sdio.o sdio_txrx.o
20b40b15e1SLorenzo Bianconi
217bc04215SFelix FietkauCFLAGS_trace.o := -I$(src)
22b40b15e1SLorenzo BianconiCFLAGS_usb_trace.o := -I$(src)
233e2342edSLorenzo BianconiCFLAGS_mt76x02_trace.o := -I$(src)
24c74df1c0SLorenzo BianconiCFLAGS_mt792x_trace.o := -I$(src)
257bc04215SFelix Fietkau
26bd724b8fSLorenzo Bianconimt76x02-lib-y := mt76x02_util.o mt76x02_mac.o mt76x02_mcu.o \
278e3ed001SLorenzo Bianconi		 mt76x02_eeprom.o mt76x02_phy.o mt76x02_mmio.o \
28e6cb3291SLorenzo Bianconi		 mt76x02_txrx.o mt76x02_trace.o mt76x02_debugfs.o \
298d71aef9SStanislaw Gruszka		 mt76x02_dfs.o mt76x02_beacon.o
30108a4861SStanislaw Gruszka
31c2db13acSLorenzo Bianconimt76x02-usb-y := mt76x02_usb_mcu.o mt76x02_usb_core.o
32905db747SLorenzo Bianconi
3346d3304dSLorenzo Bianconimt76-connac-lib-y := mt76_connac_mcu.o mt76_connac_mac.o mt76_connac3_mac.o
34d0e274afSLorenzo Bianconi
35974e759cSLorenzo Bianconimt792x-lib-y := mt792x_core.o mt792x_mac.o mt792x_trace.o \
36ff655174SLorenzo Bianconi		mt792x_debugfs.o mt792x_dma.o
3729f5a494SLorenzo Bianconimt792x-lib-$(CONFIG_ACPI) += mt792x_acpi_sar.o
38*d28e1a48SLorenzo Bianconimt792x-usb-y := mt792x_usb.o
39c74df1c0SLorenzo Bianconi
401613c621SLorenzo Bianconiobj-$(CONFIG_MT76x0_COMMON) += mt76x0/
411613c621SLorenzo Bianconiobj-$(CONFIG_MT76x2_COMMON) += mt76x2/
42c8846e10SFelix Fietkauobj-$(CONFIG_MT7603E) += mt7603/
43e90354e0SLorenzo Bianconiobj-$(CONFIG_MT7615_COMMON) += mt7615/
44e57b7901SRyder Leeobj-$(CONFIG_MT7915E) += mt7915/
45f7d55d2eSArnd Bergmannobj-$(CONFIG_MT7921_COMMON) += mt7921/
4698686cd2SShayne Chenobj-$(CONFIG_MT7996E) += mt7996/
47