xref: /freebsd/sys/modules/mt76/mt7915/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1DEVDIR=	${SRCTOP}/sys/contrib/dev/mediatek/mt76/mt7915
2
3.PATH: ${DEVDIR}
4
5WITH_DEBUGFS=		0
6WITH_DEV_COREDUMP=	1
7
8KMOD=	if_mt7915
9
10# Common stuff.
11SRCS=	init.c main.c mac.c mcu.c mmio.c eeprom.c
12SRCS+=	pci.c dma.c
13
14# SOC+6E stuff.
15#SRCS+=	soc.c
16
17.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
18SRCS+=	debugfs.c
19CFLAGS+=	-DCONFIG_MT7915_DEBUGFS=${WITH_DEBUGFS}
20.endif
21
22.if defined(WITH_DEV_COREDUMP) && ${WITH_DEV_COREDUMP} > 0
23SRCS+=	coredump.c
24CFLAGS+=	-DCONFIG_DEV_COREDUMP=${WITH_DEV_COREDUMP}
25.endif
26
27CFLAGS+=	-DKBUILD_MODNAME='"mt7915"'
28CFLAGS+=	-I${DEVDIR}
29
30.include <bsd.kmod.mk>
31