Re: git: 0e4167514fe3 - main - development.7: Add example for just kernel modules

From: Ed Maste <emaste_at_freebsd.org>
Date: Thu, 23 Jan 2025 17:38:26 UTC
On Thu, 23 Jan 2025 at 11:32, Alexander Ziaee <ziaee@freebsd.org> wrote:
>
> The branch main has been updated by ziaee:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=0e4167514fe3894b288457f9c1edd8fb3237dfb8
>
> commit 0e4167514fe3894b288457f9c1edd8fb3237dfb8
> Author:     Alexander Ziaee <ziaee@FreeBSD.org>
> AuthorDate: 2025-01-17 22:56:59 +0000
> Commit:     Alexander Ziaee <ziaee@FreeBSD.org>
> CommitDate: 2025-01-23 16:32:03 +0000
>
>     development.7: Add example for just kernel modules
>
...
> +Rebuild and reinstall a single loadable kernel module, in this case
> +.Xr sound 4 :
> +.Bd -literal -offset indent
> +cd src/sys/modules/sound
> +make all install clean cleandepend KMODDIR=/boot/kernel

It's great to have an example like this on this page, thank you.
There's one issue with sound(4) as the example though, in that sound
is included in the kernel already; in the context of a standard kernel
configuration the sound module serves no purpose. Perhaps we should
have example of configuring a custom kernel (which can be without
sound support) as well?