xref: /freebsd/sys/contrib/dev/mediatek/mt76/Makefile (revision b1bebaaba9b9c0ddfe503c43ca8e9e3917ee2c57)
1*b1bebaabSBjoern A. Zeeb# SPDX-License-Identifier: BSD-3-Clause-Clear
2*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT76_CORE) += mt76.o
3*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT76_USB) += mt76-usb.o
4*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT76_SDIO) += mt76-sdio.o
5*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT76x02_LIB) += mt76x02-lib.o
6*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT76x02_USB) += mt76x02-usb.o
7*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT76_CONNAC_LIB) += mt76-connac-lib.o
8*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT792x_LIB) += mt792x-lib.o
9*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT792x_USB) += mt792x-usb.o
10*b1bebaabSBjoern A. Zeeb
11*b1bebaabSBjoern A. Zeebmt76-y := \
12*b1bebaabSBjoern A. Zeeb	mmio.o util.o trace.o dma.o mac80211.o debugfs.o eeprom.o \
13*b1bebaabSBjoern A. Zeeb	tx.o agg-rx.o mcu.o wed.o scan.o channel.o
14*b1bebaabSBjoern A. Zeeb
15*b1bebaabSBjoern A. Zeebmt76-$(CONFIG_MT76_NPU) += npu.o
16*b1bebaabSBjoern A. Zeebmt76-$(CONFIG_PCI) += pci.o
17*b1bebaabSBjoern A. Zeebmt76-$(CONFIG_NL80211_TESTMODE) += testmode.o
18*b1bebaabSBjoern A. Zeeb
19*b1bebaabSBjoern A. Zeebmt76-usb-y := usb.o usb_trace.o
20*b1bebaabSBjoern A. Zeebmt76-sdio-y := sdio.o sdio_txrx.o
21*b1bebaabSBjoern A. Zeeb
22*b1bebaabSBjoern A. ZeebCFLAGS_trace.o := -I$(src)
23*b1bebaabSBjoern A. ZeebCFLAGS_usb_trace.o := -I$(src)
24*b1bebaabSBjoern A. ZeebCFLAGS_mt76x02_trace.o := -I$(src)
25*b1bebaabSBjoern A. ZeebCFLAGS_mt792x_trace.o := -I$(src)
26*b1bebaabSBjoern A. Zeeb
27*b1bebaabSBjoern A. Zeebmt76x02-lib-y := mt76x02_util.o mt76x02_mac.o mt76x02_mcu.o \
28*b1bebaabSBjoern A. Zeeb		 mt76x02_eeprom.o mt76x02_phy.o mt76x02_mmio.o \
29*b1bebaabSBjoern A. Zeeb		 mt76x02_txrx.o mt76x02_trace.o mt76x02_debugfs.o \
30*b1bebaabSBjoern A. Zeeb		 mt76x02_dfs.o mt76x02_beacon.o
31*b1bebaabSBjoern A. Zeeb
32*b1bebaabSBjoern A. Zeebmt76x02-usb-y := mt76x02_usb_mcu.o mt76x02_usb_core.o
33*b1bebaabSBjoern A. Zeeb
34*b1bebaabSBjoern A. Zeebmt76-connac-lib-y := mt76_connac_mcu.o mt76_connac_mac.o mt76_connac3_mac.o
35*b1bebaabSBjoern A. Zeeb
36*b1bebaabSBjoern A. Zeebmt792x-lib-y := mt792x_core.o mt792x_mac.o mt792x_trace.o \
37*b1bebaabSBjoern A. Zeeb		mt792x_debugfs.o mt792x_dma.o
38*b1bebaabSBjoern A. Zeebmt792x-lib-$(CONFIG_ACPI) += mt792x_acpi_sar.o
39*b1bebaabSBjoern A. Zeebmt792x-usb-y := mt792x_usb.o
40*b1bebaabSBjoern A. Zeeb
41*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT76x0_COMMON) += mt76x0/
42*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT76x2_COMMON) += mt76x2/
43*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT7603E) += mt7603/
44*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT7615_COMMON) += mt7615/
45*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT7915E) += mt7915/
46*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT7921_COMMON) += mt7921/
47*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT7996E) += mt7996/
48*b1bebaabSBjoern A. Zeebobj-$(CONFIG_MT7925_COMMON) += mt7925/
49