opnsense-src/sys/modules/mt76/core
Bjoern A. Zeeb 5f848eb6fd LinuxKPI wlan drivers: update makefiles to not use WITH_
Up to now the LinuxKPI wlan drivers were using local variables starting
with a WITH_ prefix in their Makefiles.
That is likely to collide with other mechanisms like WITH_ and WITHOUT_
from src.conf.
Adjust the local variables to use a driver name prefix for now to control
what is built and what is not.
These variables are mainly for the time of development so we can
turn off/on a feature or bus attachment while working on it.  Otherwise
they are there for documentation purposes.  The only reason one would
change them locally would be if someone was to build a very custom
image and not want certain bits (e.g., USB support) being compiled into
the modules.

While here, try to harmonize some parts of the Makefiles.

Suggested by:	imp
Discussed with:	imp
Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55977

(cherry picked from commit e8166d7f378bb449315aff535909c153f3e71daf)
2026-04-18 02:33:08 +00:00
..
Makefile LinuxKPI wlan drivers: update makefiles to not use WITH_ 2026-04-18 02:33:08 +00:00