mt76: set appropriate CONFIG options for the module build

Always set CONFIG_ARCH_DMA_ADDR_T_64BIT as it is true for all
architectures we support.  Add an option for CONFIG_NET_MEDIATEK_SOC_WED,
which we currently do not yet support.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb
2025-11-25 17:16:49 +00:00
parent 51c73fc5f5
commit 87aa494dfc
+9
View File
@@ -6,11 +6,15 @@ COMMONDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76
WITH_CONFIG_PM= 0 WITH_CONFIG_PM= 0
WITH_DEBUGFS= 0 WITH_DEBUGFS= 0
WITH_SOC_WED= 0
# Other # Other
SRCS+= ${LINUXKPI_GENSRCS} SRCS+= ${LINUXKPI_GENSRCS}
SRCS+= opt_wlan.h opt_inet6.h opt_inet.h SRCS+= opt_wlan.h opt_inet6.h opt_inet.h
# This is true for all architectures we build for.
CFLAGS+= -DCONFIG_ARCH_DMA_ADDR_T_64BIT
# Helpful after fresh imports. # Helpful after fresh imports.
#CFLAGS+= -ferror-limit=0 #CFLAGS+= -ferror-limit=0
@@ -22,8 +26,13 @@ CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM}
CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS} CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
.endif .endif
.if defined(WITH_SOC_WED) && ${WITH_SOC_WED} > 0
CFLAGS+= CONFIG_NET_MEDIATEK_SOC_WED
.endif
CFLAGS+= -I${COMMONDIR} CFLAGS+= -I${COMMONDIR}
CFLAGS+= ${LINUXKPI_INCLUDES} CFLAGS+= ${LINUXKPI_INCLUDES}
CFLAGS+= -DLINUXKPI_VERSION=61700 CFLAGS+= -DLINUXKPI_VERSION=61700
# end # end