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+= rtw8723x.c # 87x3 common 23SRCS+= rtw8703b.c rtw8703b_tables.c # 11n 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"' 37CFLAGS+= -DLINUXKPI_VERSION=60800 38 39CFLAGS+= -I${DEVRTW88DIR} 40CFLAGS+= ${LINUXKPI_INCLUDES} 41CFLAGS+= -DCONFIG_RTW88_DEBUG 42#CFLAGS+= -DCONFIG_RTW88_DEBUGFS 43 44.include <bsd.kmod.mk> 45