mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
Create mt7615-common module in order to collect shared code between usb and mmio code. Move the following source files in mt7615-common module: - main.c - init.c - mcu.c - mac.c - debugfs.c - eeprom.c - trace.c Create the following source files for mmio only source code and move them in mt7615e module: - pci_init.c - dma.c - pci_mac.c Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
31 lines
881 B
Makefile
31 lines
881 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
EXTRA_CFLAGS += -Werror -DCONFIG_MT76_LEDS
|
|
obj-m := mt76.o
|
|
obj-$(CONFIG_MT76_USB) += mt76-usb.o
|
|
obj-$(CONFIG_MT76x02_LIB) += mt76x02-lib.o
|
|
obj-$(CONFIG_MT76x02_USB) += mt76x02-usb.o
|
|
|
|
mt76-y := \
|
|
mmio.o util.o trace.o dma.o mac80211.o debugfs.o eeprom.o \
|
|
tx.o agg-rx.o mcu.o
|
|
|
|
mt76-$(CONFIG_PCI) += pci.o
|
|
|
|
mt76-usb-y := usb.o usb_trace.o
|
|
|
|
CFLAGS_trace.o := -I$(src)
|
|
CFLAGS_usb_trace.o := -I$(src)
|
|
CFLAGS_mt76x02_trace.o := -I$(src)
|
|
|
|
mt76x02-lib-y := mt76x02_util.o mt76x02_mac.o mt76x02_mcu.o \
|
|
mt76x02_eeprom.o mt76x02_phy.o mt76x02_mmio.o \
|
|
mt76x02_txrx.o mt76x02_trace.o mt76x02_debugfs.o \
|
|
mt76x02_dfs.o mt76x02_beacon.o
|
|
|
|
mt76x02-usb-y := mt76x02_usb_mcu.o mt76x02_usb_core.o
|
|
|
|
obj-$(CONFIG_MT76x0_COMMON) += mt76x0/
|
|
obj-$(CONFIG_MT76x2_COMMON) += mt76x2/
|
|
obj-$(CONFIG_MT7603E) += mt7603/
|
|
obj-$(CONFIG_MT7615_COMMON) += mt7615/
|