git: 0e4167514fe3 - main - development.7: Add example for just kernel modules
Date: Thu, 23 Jan 2025 16:32:42 UTC
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 Reported by: christos Reviewed by: carlavilla, christos Accepted by: christos (src), carlavilla (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D48507 --- share/man/man7/development.7 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/share/man/man7/development.7 b/share/man/man7/development.7 index eb5a57a464fc..1b875fb14bda 100644 --- a/share/man/man7/development.7 +++ b/share/man/man7/development.7 @@ -24,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd July 7, 2024 +.Dd January 19, 2025 .Dt DEVELOPMENT 7 .Os .Sh NAME @@ -152,6 +152,13 @@ cd src/bin/ls make clean all install .Ed .Pp +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 +.Ed +.Pp Quickly rebuild and reinstall the kernel, only recompiling the files changed since last build; note that this will only work if the full kernel build has been completed in the past, not on a fresh source tree: