1# $FreeBSD$ 2 3DEVRTW88DIR= ${SRCTOP}/sys/contrib/dev/rtw88 4 5.PATH: ${DEVRTW88DIR} 6 7WITH_CONFIG_PM= 0 8 9KMOD= if_rtw88 10 11# Core parts. 12SRCS= main.c 13SRCS+= bf.c coex.c debug.c efuse.c fw.c mac.c mac80211.c 14SRCS+= phy.c ps.c regd.c 15SRCS+= rx.c sar.c sec.c tx.c util.c 16 17.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0 18SRCS+= wow.c 19CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM} 20.endif 21 22# PCI parts. 23SRCS+= pci.c 24SRCS+= rtw8723d.c rtw8723d_table.c rtw8723de.c # 11n 25SRCS+= rtw8821c.c rtw8821c_table.c rtw8821ce.c # 11ac 26SRCS+= rtw8822b.c rtw8822b_table.c rtw8822be.c # 11ac 27SRCS+= rtw8822c.c rtw8822c_table.c rtw8822ce.c # 11ac 28 29# Other 30SRCS+= ${LINUXKPI_GENSRCS} 31SRCS+= opt_wlan.h opt_inet6.h opt_inet.h 32 33# Helpful after fresh imports. 34#CFLAGS+= -ferror-limit=0 35 36CFLAGS+= -DKBUILD_MODNAME='"rtw88"' 37 38CFLAGS+= -I${DEVRTW88DIR} 39CFLAGS+= ${LINUXKPI_INCLUDES} 40CFLAGS+= -DCONFIG_RTW88_DEBUG 41#CFLAGS+= -DCONFIG_RTW88_DEBUGFS 42 43.include <bsd.kmod.mk> 44