mirror of
https://github.com/opnsense/src.git
synced 2026-04-05 01:15:30 -04:00
Import rtw89 based on wireless-testing at (tag: wt-2022-09-02) 78667a29c116c6b186a37e28cd8dd7fa9923aee8 with adjustments for FreeBSD. For the moment this will stay disconnected from the build until the last bits are flushed out, but this will help people with a card to do testing and possibly help improving. Given the lack of full license texts on non-local files this is imported under the draft policy for handling SPDX files (D29226). [1] Approved by: core.11 (imp) [1] [2022-03-27] MFC after: 6 weeks
40 lines
860 B
Makefile
40 lines
860 B
Makefile
# $FreeBSD$
|
|
|
|
DEVRTW89DIR= ${SRCTOP}/sys/contrib/dev/rtw89
|
|
|
|
.PATH: ${DEVRTW89DIR}
|
|
|
|
WITH_CONFIG_PM= 0
|
|
|
|
KMOD= if_rtw89
|
|
|
|
SRCS= core.c
|
|
SRCS+= pci.c
|
|
SRCS+= chan.c mac80211.c mac.c phy.c fw.c
|
|
SRCS+= rtw8852a.c rtw8852a_table.c
|
|
SRCS+= rtw8852a_rfk.c rtw8852a_rfk_table.c
|
|
SRCS+= rtw8852ae.c
|
|
SRCS+= rtw8852c.c rtw8852c_table.c
|
|
SRCS+= rtw8852c_rfk.c rtw8852c_rfk_table.c
|
|
SRCS+= rtw8852ce.c
|
|
SRCS+= cam.c efuse.c regd.c sar.c coex.c ps.c ser.c
|
|
SRCS+= debug.c
|
|
|
|
.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0
|
|
CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM}
|
|
.endif
|
|
|
|
# Other
|
|
SRCS+= ${LINUXKPI_GENSRCS}
|
|
SRCS+= opt_wlan.h opt_inet6.h opt_inet.h
|
|
|
|
CFLAGS+= -DKBUILD_MODNAME='"rtw89"'
|
|
|
|
CFLAGS+= -I${DEVRTW89DIR}
|
|
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
|
|
CFLAGS+= -DCONFIG_RTW89_DEBUGMSG
|
|
#CFLAGS+= -DCONFIG_RTW89_DEBUGFS
|
|
|
|
#CFLAGS+= -ferror-limit=0
|
|
|
|
.include <bsd.kmod.mk>
|