Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Dec 2025 15:44:22 +0000
From:      Bjoern A. Zeeb <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e2ebe56c50e7 - stable/15 - mt76: set appropriate CONFIG options for the module build
Message-ID:  <6936f256.37aaf.6bb26b9f@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help

The branch stable/15 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=e2ebe56c50e77f3302c85a8203f8fa4050ae0f54

commit e2ebe56c50e77f3302c85a8203f8fa4050ae0f54
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-11-25 17:16:49 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-12-08 15:43:53 +0000

    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
    
    (cherry picked from commit 87aa494dfca73204516799033821ab1db184933f)
---
 sys/modules/mt76/Makefile.inc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sys/modules/mt76/Makefile.inc b/sys/modules/mt76/Makefile.inc
index 35a8e34f14d3..44aa94c954a8 100644
--- a/sys/modules/mt76/Makefile.inc
+++ b/sys/modules/mt76/Makefile.inc
@@ -6,11 +6,15 @@ COMMONDIR=	${SRCTOP}/sys/contrib/dev/mediatek/mt76
 
 WITH_CONFIG_PM=	0
 WITH_DEBUGFS=	0
+WITH_SOC_WED=	0
 
 # Other
 SRCS+=	${LINUXKPI_GENSRCS}
 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.
 #CFLAGS+=	-ferror-limit=0
 
@@ -22,8 +26,13 @@ CFLAGS+=	-DCONFIG_PM=${WITH_CONFIG_PM}
 CFLAGS+=	-DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
 .endif
 
+.if defined(WITH_SOC_WED) && ${WITH_SOC_WED} > 0
+CFLAGS+=	CONFIG_NET_MEDIATEK_SOC_WED
+.endif
+
 CFLAGS+=	-I${COMMONDIR}
 CFLAGS+=	${LINUXKPI_INCLUDES}
 CFLAGS+=	-DLINUXKPI_VERSION=61700
 
+
 # end



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6936f256.37aaf.6bb26b9f>