]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/rtw88/Makefile
Merge llvm-project main llvmorg-14-init-10223-g401b76fdf2b3
[FreeBSD/FreeBSD.git] / sys / modules / rtw88 / Makefile
1 # $FreeBSD$
2
3 DEVRTW88DIR=    ${SRCTOP}/sys/contrib/dev/rtw88
4
5 .PATH: ${DEVRTW88DIR}
6
7 WITH_CONFIG_PM= 0
8
9 KMOD=   if_rtw88
10
11 SRCS=   main.c
12 SRCS+=  bf.c coex.c debug.c efuse.c fw.c mac.c mac80211.c
13 SRCS+=  pci.c phy.c ps.c regd.c
14 SRCS+=  rtw8723d.c rtw8723d_table.c rtw8723de.c         # 11n
15 SRCS+=  rtw8821c.c rtw8821c_table.c rtw8821ce.c         # 11ac
16 SRCS+=  rtw8822b.c rtw8822b_table.c rtw8822be.c         # 11ac
17 SRCS+=  rtw8822c.c rtw8822c_table.c rtw8822ce.c         # 11ac
18 SRCS+=  rx.c sar.c sec.c tx.c util.c
19
20 .if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0
21 SRCR+=  wow.c
22 CFLAGS+=        -DCONFIG_PM=${WITH_CONFIG_PM}
23 .endif
24
25 # Other
26 SRCS+=  ${LINUXKPI_GENSRCS}
27 SRCS+=  opt_wlan.h opt_inet6.h opt_inet.h
28
29 CFLAGS+=        -DKBUILD_MODNAME='"rtw88"'
30
31 CFLAGS+=        -I${DEVRTW88DIR}
32 CFLAGS+=        -I${SRCTOP}/sys/compat/linuxkpi/common/include
33 CFLAGS+=        -DCONFIG_RTW88_DEBUG
34 #CFLAGS+=       -DCONFIG_RTW88_DEBUGFS
35
36 .include <bsd.kmod.mk>