opnsense-src/sys/modules/mt76/core/Makefile
Bjoern A. Zeeb cbb3ec2523 mt76: update driver from upstream
This is a set of updates of the mt76 driver based on wireless-testing
(wt-2023-05-11) 711dca0ca3d77414f8f346e564e9c8640147f40d (after v6.4-rc1),
  This adds support for mt7996 as well.
(wt-2023-06-09) 7bd20e011626ccc3ad53e57873452b1716fcfaaa (after v6.4-rc5),
(wt-2023-07-24) 62e409149b62a285e89018e49b2e115757fb9022 (after v6.5-rc3),
(wt-2023-08-06) 2a220a15be657a24868368892e3e2caba2115283 (after v6.5-rc4).

The current version of LinuxKPI lacks support for "page pool" which
needs enhancing and updating a decade or so old shortcut mapping
struct page directly to struct vm_page.

MFC after:	20 days
2023-08-21 01:34:03 +00:00

41 lines
954 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+= 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}
.include <bsd.kmod.mk>