The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=cd91367dc39476583fc01676f4d35ccda8aa14c5
commit cd91367dc39476583fc01676f4d35ccda8aa14c5 Author: Bjoern A. Zeeb <[email protected]> AuthorDate: 2026-02-03 18:26:37 +0000 Commit: Bjoern A. Zeeb <[email protected]> CommitDate: 2026-02-26 23:01:13 +0000 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 (cherry picked from commit 03f6b1fd6af0bb43f74b38d8b5373f5485da0e8f) --- sys/modules/mt76/Makefile.inc | 2 -- sys/modules/mt76/core/Makefile | 2 ++ 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.
