Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Apr 2026 11:01:17 +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: f5f3c16d9256 - stable/15 - ath11k: restore module Makefile
Message-ID:  <69e3647d.3424d.5be25e95@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by bz:

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

commit f5f3c16d9256fb8bb2c38e1dd91ca420f240bfd6
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-03-20 00:17:41 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-04-18 02:33:01 +0000

    ath11k: restore module Makefile
    
    During the subtree merge and checking out the updated version of ath12k
    parts of the previous ath11k merge were accidentally undone.
    Retore the ath11k Makefile as well after 3c4eef5d838b restored the
    driver bits.
    
    Fixes:          a96550206e4b ("ath12k: update Atheros/QCA's ath12k ..")
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit f9795615415074b23faf8e5d937c2ef31045d3d0)
---
 sys/modules/ath11k/Makefile | 63 +++++++++++++++++++++++++++++++--------------
 1 file changed, 43 insertions(+), 20 deletions(-)

diff --git a/sys/modules/ath11k/Makefile b/sys/modules/ath11k/Makefile
index 42aa9b9936cd..d17e76255802 100644
--- a/sys/modules/ath11k/Makefile
+++ b/sys/modules/ath11k/Makefile
@@ -2,30 +2,62 @@ DEVATH11KDIR=	${SRCTOP}/sys/contrib/dev/athk/ath11k
 
 .PATH: ${DEVATH11KDIR}
 
-WITH_DEBUGFS=	0		# Does not yet compile
-WITH_CONFIG_PM=	0
+ATH11K_DEBUGFS=		0
+ATH11K_TRACE=		0
+ATH11K_THERMAL=		0
+ATH11K_SPECTRAL=	0
+ATH11K_PM=		0
+ATH11K_DEV_COREDUMP=	0
 
 KMOD=	if_ath11k
 
 SRCS+=	core.c hal.c hal_tx.c hal_rx.c
 SRCS+=	wmi.c mac.c reg.c htc.c qmi.c
 SRCS+=	dp.c dp_tx.c dp_rx.c debug.c
-SRCS+=	ce.c peer.c dbring.c hw.c
-SRCS+=	coredump.c fw.c p2p.c
+SRCS+=	ce.c peer.c dbring.c hw.c pcic.c
+SRCS+=	fw.c p2p.c
 
-SRCS+=	mhi.c pci.c pcic.c
+# PCI
+SRCS+=	mhi.c pci.c
 
-.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0
-CFLAGS+=	-DCONFIG_PM=${WITH_CONFIG_PM}
+# AHB
+#SRCS+=	ahb.c
+
+.if defined(ATH11K_DEBUGFS) && ${ATH11K_DEBUGFS} > 0
+SRCS+=	debugfs.c debugfs_htt_stats.c debugfs_sta.c
+CFLAGS+=	-DCONFIG_ATH11K_DEBUGFS
+CFLAGS+=	-DCONFIG_MAC80211_DEBUGFS
+.endif
+
+.if defined(ATH11K_TRACE) && ${ATH11K_TRACE} > 0
+SRCS+=	trace.c
+CFLAGS+=	-DCONFIG_ATH11K_TRACING
+.endif
+
+.if defined(ATH11K_THERMAL) && ${ATH11K_THERMAL} > 0
+SRCS+=	thermal.c
+CFLAGS+=	-DCONFIG_ATH11K_THERMAL
+.endif
+
+.if defined(ATH11K_SPECTRAL) && ${ATH11K_SPECTRAL} > 0
+SRCS+=	spectral.c
+CFLAGS+=	-DCONFIG_ATH11K_SPECTRAL
+.endif
+
+.if defined(ATH11K_PM) && ${ATH11K_PM} > 0
+CFLAGS+=	-DCONFIG_PM
 SRCS+=	wow.c
 .endif
 
+.if defined(ATH11K_DEV_COREDUMP) && ${ATH11K_DEV_COREDUMP} > 0
+CFLAGS+=	-DCONFIG_DEV_COREDUMP
+SRCS+=	coredump.c
+.endif
+
 # Other
 SRCS+=	${LINUXKPI_GENSRCS}
 SRCS+=	opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
 
-CFLAGS+=	-DKBUILD_MODNAME='"ath11k"'
-
 CFLAGS+=	-I${DEVATH11KDIR}
 CFLAGS+=	-I${DEVATH11KDIR}/..
 CFLAGS+=	${LINUXKPI_INCLUDES}
@@ -34,16 +66,7 @@ CFLAGS+=	${LINUXKPI_INCLUDES}
 
 CFLAGS+=	-DCONFIG_ATH11K_DEBUG
 
-.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0
-SRCS+=		debugfs.c debugfs_htt_stats.c debugfs_sta.c
-CFLAGS+=	-DCONFIG_ATH11K_DEBUGFS=${WITH_DEBUGFS}
-CFLAGS+=	-DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS}
-.endif
-
-#CFLAGS+=	-DCONFIG_ATH11K_SPECTRAL
-#CFLAGS+=	-DCONFIG_ATH11K_TRACING
-#CFLAGS+=	-DCONFIG_NL80211_TESTMODE
-#CFLAGS+=	-DCONFIG_PM
-#CFLAGS+=	-DCONFIG_THERMAL
+CFLAGS+=	-DKBUILD_MODNAME='"ath11k"'
+CFLAGS+=	-DLINUXKPI_VERSION=61900
 
 .include <bsd.kmod.mk>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e3647d.3424d.5be25e95>