1DEVRTW88DIR= ${SRCTOP}/sys/contrib/dev/rtw88 2 3.PATH: ${DEVRTW88DIR} 4 5WITH_CONFIG_PM= 0 6WITH_DEBUGFS= 1 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+= rtw8723x.c # 87x3 common 24SRCS+= rtw8703b.c rtw8703b_tables.c # 11n 25SRCS+= rtw8723d.c rtw8723d_table.c rtw8723de.c # 11n 26SRCS+= rtw8821c.c rtw8821c_table.c rtw8821ce.c # 11ac 27SRCS+= rtw8822b.c rtw8822b_table.c rtw8822be.c # 11ac 28SRCS+= rtw8822c.c rtw8822c_table.c rtw8822ce.c # 11ac 29 30# Other 31SRCS+= ${LINUXKPI_GENSRCS} 32SRCS+= opt_wlan.h opt_inet6.h opt_inet.h 33 34# Helpful after fresh imports. 35#CFLAGS+= -ferror-limit=0 36 37CFLAGS+= -DKBUILD_MODNAME='"rtw88"' 38CFLAGS+= -DLINUXKPI_VERSION=60800 39 40CFLAGS+= -I${DEVRTW88DIR} 41CFLAGS+= ${LINUXKPI_INCLUDES} 42CFLAGS+= -DCONFIG_RTW88_DEBUG 43.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 44CFLAGS+= -DCONFIG_RTW88_DEBUGFS 45.endif 46 47.include <bsd.kmod.mk> 48