1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
27bc04215SFelix Fietkauobj-$(CONFIG_MT76_CORE) += mt76.o
3b40b15e1SLorenzo Bianconiobj-$(CONFIG_MT76_USB) += mt76-usb.o
4*d39b52e3SSean Wangobj-$(CONFIG_MT76_SDIO) += mt76-sdio.o
5108a4861SStanislaw Gruszkaobj-$(CONFIG_MT76x02_LIB) += mt76x02-lib.o
6905db747SLorenzo Bianconiobj-$(CONFIG_MT76x02_USB) += mt76x02-usb.o
77bc04215SFelix Fietkau
87bc04215SFelix Fietkaumt76-y := \
99df0fab9SLorenzo Bianconi	mmio.o util.o trace.o dma.o mac80211.o debugfs.o eeprom.o \
1085b7a5d0SLorenzo Bianconi	tx.o agg-rx.o mcu.o
117bc04215SFelix Fietkau
12f37f0550SLorenzo Bianconimt76-$(CONFIG_PCI) += pci.o
13f0efa862SFelix Fietkaumt76-$(CONFIG_NL80211_TESTMODE) += testmode.o
14f37f0550SLorenzo Bianconi
15fc994dbbSStanislaw Gruszkamt76-usb-y := usb.o usb_trace.o
16*d39b52e3SSean Wangmt76-sdio-y := sdio.o
17b40b15e1SLorenzo Bianconi
187bc04215SFelix FietkauCFLAGS_trace.o := -I$(src)
19b40b15e1SLorenzo BianconiCFLAGS_usb_trace.o := -I$(src)
203e2342edSLorenzo BianconiCFLAGS_mt76x02_trace.o := -I$(src)
217bc04215SFelix Fietkau
22bd724b8fSLorenzo Bianconimt76x02-lib-y := mt76x02_util.o mt76x02_mac.o mt76x02_mcu.o \
238e3ed001SLorenzo Bianconi		 mt76x02_eeprom.o mt76x02_phy.o mt76x02_mmio.o \
24e6cb3291SLorenzo Bianconi		 mt76x02_txrx.o mt76x02_trace.o mt76x02_debugfs.o \
258d71aef9SStanislaw Gruszka		 mt76x02_dfs.o mt76x02_beacon.o
26108a4861SStanislaw Gruszka
27c2db13acSLorenzo Bianconimt76x02-usb-y := mt76x02_usb_mcu.o mt76x02_usb_core.o
28905db747SLorenzo Bianconi
291613c621SLorenzo Bianconiobj-$(CONFIG_MT76x0_COMMON) += mt76x0/
301613c621SLorenzo Bianconiobj-$(CONFIG_MT76x2_COMMON) += mt76x2/
31c8846e10SFelix Fietkauobj-$(CONFIG_MT7603E) += mt7603/
32e90354e0SLorenzo Bianconiobj-$(CONFIG_MT7615_COMMON) += mt7615/
33e57b7901SRyder Leeobj-$(CONFIG_MT7915E) += mt7915/
34