Re: git: c47cefba8312 - main - Only build USB-related modules if MK_USB != no

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Tue, 03 Mar 2026 18:29:16 UTC
On Tue, 3 Mar 2026, Enji Cooper wrote:

> The branch main has been updated by ngie:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=c47cefba831240a1b3de375f18134b93cf998f5c
>
> commit c47cefba831240a1b3de375f18134b93cf998f5c
> Author:     Enji Cooper <ngie@FreeBSD.org>
> AuthorDate: 2026-03-03 04:49:54 +0000
> Commit:     Enji Cooper <ngie@FreeBSD.org>
> CommitDate: 2026-03-03 04:50:03 +0000
>
>    Only build USB-related modules if MK_USB != no
>
>    This change moves the thunderbolt module and other USB modules under a
>    MK_USB != no conditional to ensure that users not desiring USB support
>    can easily build systems without USB-specific drivers using this knob.
>
>    MFC after:      1 week
>    Reviewed By:    imp
>    Differential Revision: https://reviews.freebsd.org/D55576
> ---
> sys/conf/kern.opts.mk |  5 +++++
> sys/conf/kmod.mk      |  8 ++++++--
> sys/modules/Makefile  | 16 ++++++++++------
> 3 files changed, 21 insertions(+), 8 deletions(-)

There is a hige load of further devices which depend on USB which are not
part of the current set excluded;  I assume they will now break with dependency
issues if USB is no longer built but these modules are built.

Is there any plan to also "hide" all the other modules?

-- 
Bjoern A. Zeeb                                                     r15:7