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