aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2026-02-03 18:26:37 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2026-02-07 00:57:51 +0000
commit03f6b1fd6af0bb43f74b38d8b5373f5485da0e8f (patch)
treecc3b54c273440b8d1cb2f47c13addf5fad6cc9c1
parent201fc8a55a4832174b5943e17ac90800aebe5772 (diff)
mt76: module Makefiles fix .PATH
The common Makefile.inc had the .PATH set for the common code. That .PATH is only needed for the mt76_core module, which shares code for all other drivers. We leave the COMMONDIR variable defined in Makefile.inc as we need it for CFLAGS+= -I for each driver but migrate the .PATH to avoid drivers picking up the wrong files. Sponsored by: The FreeBSD Foundation MFC after: 3 days
-rw-r--r--sys/modules/mt76/Makefile.inc2
-rw-r--r--sys/modules/mt76/core/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/modules/mt76/Makefile.inc b/sys/modules/mt76/Makefile.inc
index 739c85c60dac..41b18651e985 100644
--- a/sys/modules/mt76/Makefile.inc
+++ b/sys/modules/mt76/Makefile.inc
@@ -2,8 +2,6 @@
COMMONDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76
-.PATH: ${COMMONDIR}
-
# Bus attachments.
WITH_PCI= 1
WITH_USB= 0
diff --git a/sys/modules/mt76/core/Makefile b/sys/modules/mt76/core/Makefile
index 589063a23229..f2aec9dfcf4c 100644
--- a/sys/modules/mt76/core/Makefile
+++ b/sys/modules/mt76/core/Makefile
@@ -1,5 +1,7 @@
.include <kmod.opts.mk>
+.PATH: ${COMMONDIR}
+
KMOD= mt76_core
# Basic stuff.