mirror of
https://github.com/opnsense/src.git
synced 2026-07-05 07:16:20 -04:00
This version is based on git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 38fec10eb60d687e30c8c6b5420d86e8149f7557 ( tag: v6.14 ). Sponsored by: The FreeBSD Foundation
43 lines
1,001 B
Makefile
43 lines
1,001 B
Makefile
KMOD= mt76_core
|
|
|
|
# Basic stuff.
|
|
SRCS= mac80211.c mmio.c util.c dma.c eeprom.c tx.c agg-rx.c mcu.c
|
|
SRCS+= channel.c scan.c wed.c
|
|
#SRCS+= trace.c
|
|
|
|
# Bus stuff.
|
|
SRCS+= pci.c
|
|
.if defined(WITH_USB) && ${WITH_USB} > 0
|
|
SRCS+= usb.c # usb_trace.c
|
|
.endif
|
|
#SRCS+= sdio.c sdio_txrx.c
|
|
|
|
# Connac-Lib stuff.
|
|
SRCS+= mt76_connac_mac.c mt76_connac_mcu.c mt76_connac3_mac.c
|
|
|
|
# MT76x02-Lib stuff (we don't need; that's for older chipsets not yet supported)
|
|
|
|
# XXX should this be a separate module?
|
|
# MT792X-LIB stuff.
|
|
SRCS+= mt792x_core.c mt792x_mac.c mt792x_dma.c
|
|
#SRCS+= mt792x_trace.c
|
|
.if defined(WITH_ACPI) && ${WITH_ACPI} > 0
|
|
SRCS+= mt792x_acpi_sar.c
|
|
.endif
|
|
.if defined(WITH_USB) && ${WITH_USB} > 0
|
|
SRCS+= mt792x_usb.c
|
|
.endif
|
|
.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
|
|
SRCS+= mt792x_debugfs.c
|
|
.endif
|
|
|
|
.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
|
|
SRCS+= debugfs.c
|
|
.endif
|
|
|
|
CFLAGS+= -DKBUILD_MODNAME='"mt76_core"'
|
|
CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
|
|
|
|
EXPORT_SYMS= YES
|
|
|
|
.include <bsd.kmod.mk>
|