aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/ath12k/Makefile
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2023-06-11 00:23:44 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2023-08-21 01:33:04 +0000
commit5c1def83a4cc2eb3f828600dfd786f8c5788fb7d (patch)
treee55255e2e7a557317c564bcc880ffcb69a90531c /sys/modules/ath12k/Makefile
parent28348caeee6ee98251b0aaa026e8d52b5032e92c (diff)
Diffstat (limited to 'sys/modules/ath12k/Makefile')
-rw-r--r--sys/modules/ath12k/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/sys/modules/ath12k/Makefile b/sys/modules/ath12k/Makefile
new file mode 100644
index 000000000000..e72d061d0c08
--- /dev/null
+++ b/sys/modules/ath12k/Makefile
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+DEVATH12KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath12k
+
+.PATH: ${DEVATH12KDIR}
+
+WITH_CONFIG_ATH12K_TRACING= 0
+
+KMOD= if_ath12k
+
+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 dp_mon.c debug.c
+SRCS+= ce.c peer.c dbring.c hw.c
+
+SRCS+= mhi.c pci.c
+
+.if defined(WITH_CONFIG_ATH12K_TRACING) && ${WITH_CONFIG_ATH12K_TRACING} > 0
+CFLAGS+= -DCONFIG_ATH12K_TRACING=${WITH_CONFIG_ATH12K_TRACING}
+SRCS+= trace.c
+.endif
+
+# Other
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
+
+CFLAGS+= -DKBUILD_MODNAME='"ath12k"'
+
+CFLAGS+= -I${DEVATH12KDIR}
+CFLAGS+= -I${DEVATH12KDIR}/..
+CFLAGS+= ${LINUXKPI_INCLUDES}
+# Helpful after fresh imports.
+#CFLAGS+= -ferror-limit=0
+
+CFLAGS+= -DCONFIG_ATH12K_DEBUG
+
+.include <bsd.kmod.mk>