Page MenuHomeFreeBSD

Use variant kernel configs to simplify sys/*/conf
Changes PlannedPublic

Authored by cperciva on Jul 29 2025, 6:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 18, 11:17 PM
Unknown Object (File)
Sep 8 2025, 7:33 PM
Unknown Object (File)
Sep 7 2025, 6:32 AM
Unknown Object (File)
Sep 6 2025, 7:25 PM
Unknown Object (File)
Aug 31 2025, 3:25 AM
Unknown Object (File)
Aug 25 2025, 4:25 PM
Unknown Object (File)
Aug 25 2025, 3:41 PM
Unknown Object (File)
Aug 25 2025, 3:00 PM

Details

Reviewers
andrew
manu
Summary

We no longer need to provide kernel configuration files for e.g.
GENERIC-NODEBUG since those can be synthesized automatically by the
build system as GENERIC + std.nodebug.

Add std.* files for kasan, kcsan, kmsan, noinet, noip, noinet6, and
novimage.

Add new "UNIVERSE-EXTRAS" files to tell the universe-kernels target
which variant kernels to build in addition to "whatever is listed in
the sys/$arch/conf directory".

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65831
Build 62714: arc lint + arc unit

Event Timeline

I have no idea why Phabricator says I'm planning changes to this.

The fact we are adding a dozen std.foo for a single option tells me this design is weak and we'll have lots of problems with it in the future.... I'm not officially objecting, but I'd be curios what ithers who have hacked on config thing.

In D51616#1179424, @imp wrote:

The fact we are adding a dozen std.foo for a single option tells me this design is weak and we'll have lots of problems with it in the future.... I'm not officially objecting, but I'd be curios what ithers who have hacked on config thing.

That's a very good point. I'm going to rework this so that FOO-BAR means "include std.bar if that exists; otherwise add 'options bar'". Similarly for FOO-NOBAR. That will get rid of all of the new std.* files except for std.noip (which is nontrivial) and also allow for e.g. GENERIC-TSLOG without needing a new std.tslog file to be added.