Page MenuHomeFreeBSD

Makefile.inc1: Make NO_INSTALLKERNEL less of a hack
ClosedPublic

Authored by jrtc27 on Dec 18 2025, 5:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 16, 7:16 AM
Unknown Object (File)
Thu, Jan 15, 4:31 PM
Unknown Object (File)
Mon, Jan 12, 5:54 PM
Unknown Object (File)
Sat, Jan 10, 3:44 PM
Unknown Object (File)
Sat, Jan 10, 5:46 AM
Unknown Object (File)
Fri, Jan 9, 6:56 PM
Unknown Object (File)
Thu, Jan 8, 3:15 PM
Unknown Object (File)
Tue, Jan 6, 7:14 AM
Subscribers

Details

Summary

Rather than adding a dummy entry which requires everyone to know to skip
it, introduce a new INSTALLEXTRAKERNELS which contains the set of
kernels to install as kernel.KERNCONF.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jrtc27 created this revision.

Can we put this in build(7)?

Move INSTALLEXTRAKERNELS after NO_INSTALLEXTRAKERNELS is set. Hidden by testing originally on CheriBSD where we set NO_INSTALLEXTRAKERNELS to no early for Morello..

Makefile.inc1
1868

why skip the 1st entry? In the original version ${BUILDKERNELS:Ndummy} might have been simpler, but you're getting rid of dummy

Makefile.inc1
1868

This is the !NO_INSTALLKERNEL case where there wasn't a dummy entry before, and still isn't. The first entry is being installed separately to /boot/kernel. The dummy entry was to work around the fact that it *always* skipped the first entry even with NO_INSTALLKERNEL, and now that doesn't happen.

i've tested D54282 rebased on this diff and it seems to work fine.

Can we put this in build(7)?

there are no user-visible changes in this patch. you could document NO_INSTALLKERNEL if you want.

This revision is now accepted and ready to land.Dec 18 2025, 11:17 PM
Makefile.inc1
1868

Ok, I suspected as much, but perhaps a comment wouldn't hurt