mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Approved by: markj (cddl/contrib changes)
Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D41961
(cherry picked from commit f53355131f)
27 lines
556 B
Makefile
27 lines
556 B
Makefile
DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7996
|
|
|
|
.PATH: ${DEVDIR}
|
|
|
|
WITH_DEBUGFS= 0
|
|
WITH_DEV_COREDUMP= 1
|
|
|
|
KMOD= if_mt7996
|
|
|
|
# Common stuff.
|
|
SRCS= init.c main.c mac.c mcu.c mmio.c eeprom.c
|
|
SRCS+= pci.c dma.c
|
|
|
|
.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
|
|
SRCS+= debugfs.c
|
|
CFLAGS+= -DCONFIG_MT7996_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='"mt7996"'
|
|
CFLAGS+= -I${DEVDIR}
|
|
|
|
.include <bsd.kmod.mk>
|