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