xref: /linux/drivers/net/wireless/mediatek/mt76/Makefile (revision b8fc42dc065742bc68df6a61a2aff8cbe364fa17)
1# SPDX-License-Identifier: GPL-2.0-only
2obj-$(CONFIG_MT76_CORE) += mt76.o
3obj-$(CONFIG_MT76_USB) += mt76-usb.o
4obj-$(CONFIG_MT76_SDIO) += mt76-sdio.o
5obj-$(CONFIG_MT76x02_LIB) += mt76x02-lib.o
6obj-$(CONFIG_MT76x02_USB) += mt76x02-usb.o
7obj-$(CONFIG_MT76_CONNAC_LIB) += mt76-connac-lib.o
8obj-$(CONFIG_MT792x_LIB) += mt792x-lib.o
9obj-$(CONFIG_MT792x_USB) += mt792x-usb.o
10
11mt76-y := \
12	mmio.o util.o trace.o dma.o mac80211.o debugfs.o eeprom.o \
13	tx.o agg-rx.o mcu.o wed.o
14
15mt76-$(CONFIG_PCI) += pci.o
16mt76-$(CONFIG_NL80211_TESTMODE) += testmode.o
17
18mt76-usb-y := usb.o usb_trace.o
19mt76-sdio-y := sdio.o sdio_txrx.o
20
21CFLAGS_trace.o := -I$(src)
22CFLAGS_usb_trace.o := -I$(src)
23CFLAGS_mt76x02_trace.o := -I$(src)
24CFLAGS_mt792x_trace.o := -I$(src)
25
26mt76x02-lib-y := mt76x02_util.o mt76x02_mac.o mt76x02_mcu.o \
27		 mt76x02_eeprom.o mt76x02_phy.o mt76x02_mmio.o \
28		 mt76x02_txrx.o mt76x02_trace.o mt76x02_debugfs.o \
29		 mt76x02_dfs.o mt76x02_beacon.o
30
31mt76x02-usb-y := mt76x02_usb_mcu.o mt76x02_usb_core.o
32
33mt76-connac-lib-y := mt76_connac_mcu.o mt76_connac_mac.o mt76_connac3_mac.o
34
35mt792x-lib-y := mt792x_core.o mt792x_mac.o mt792x_trace.o \
36		mt792x_debugfs.o mt792x_dma.o
37mt792x-lib-$(CONFIG_ACPI) += mt792x_acpi_sar.o
38mt792x-usb-y := mt792x_usb.o
39
40obj-$(CONFIG_MT76x0_COMMON) += mt76x0/
41obj-$(CONFIG_MT76x2_COMMON) += mt76x2/
42obj-$(CONFIG_MT7603E) += mt7603/
43obj-$(CONFIG_MT7615_COMMON) += mt7615/
44obj-$(CONFIG_MT7915E) += mt7915/
45obj-$(CONFIG_MT7921_COMMON) += mt7921/
46obj-$(CONFIG_MT7996E) += mt7996/
47obj-$(CONFIG_MT7925_COMMON) += mt7925/
48