mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
31 lines
588 B
Makefile
31 lines
588 B
Makefile
|
|
DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7915
|
|
|
|
.PATH: ${DEVDIR}
|
|
|
|
WITH_DEBUGFS= 0
|
|
WITH_DEV_COREDUMP= 1
|
|
|
|
KMOD= if_mt7915
|
|
|
|
# Common stuff.
|
|
SRCS= init.c main.c mac.c mcu.c mmio.c eeprom.c
|
|
SRCS+= pci.c dma.c
|
|
|
|
# SOC+6E stuff.
|
|
#SRCS+= soc.c
|
|
|
|
.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
|
|
SRCS+= debugfs.c
|
|
CFLAGS+= -DCONFIG_MT7915_DEBUGFS=${WITH_DEBUGFS}
|
|
.endif
|
|
|
|
.if defined(WITH_DEV_COREDUMP) && ${WITH_DEV_COREDUMP} > 0
|
|
SRCS+= coredump.c
|
|
CFLAGS+= -DCONFIG_DEV_COREDUMP=${WITH_DEV_COREDUMP}
|
|
.endif
|
|
|
|
CFLAGS+= -DKBUILD_MODNAME='"mt7915"'
|
|
CFLAGS+= -I${DEVDIR}
|
|
|
|
.include <bsd.kmod.mk>
|