Page MenuHomeFreeBSD

bsd.mkopt.mk: Allow OPT_FOO to be set to override FOO
Needs ReviewPublic

Authored by jrtc27 on Jan 25 2026, 2:33 PM.
Tags
None
Referenced Files
F156523429: D54876.id.diff
Thu, May 14, 9:45 AM
F156510645: D54876.id171514.diff
Thu, May 14, 6:48 AM
Unknown Object (File)
Wed, May 13, 6:49 PM
Unknown Object (File)
Sun, May 10, 10:49 PM
Unknown Object (File)
Tue, Apr 28, 1:25 PM
Unknown Object (File)
Sat, Apr 25, 10:21 AM
Unknown Object (File)
Thu, Apr 23, 3:00 PM
Unknown Object (File)
Wed, Apr 22, 1:11 AM

Details

Reviewers
brooks
imp
Group Reviewers
cheri
Summary

Just as we allow MK_FOO to be set, overriding any WITH(OUT)_FOO and the
default, we should allow OPT_FOO to be set, overriding any FOO and the
default.

Obtained from: CheriBSD
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 70547
Build 67430: arc lint + arc unit

Event Timeline

What are you using this for? I think it's ahoodchange, but I'm curios.

This revision is now accepted and ready to land.Jan 25 2026, 4:23 PM
In D54876#1254502, @imp wrote:

What are you using this for? I think it's ahoodchange, but I'm curios.

Downstream I'm adding an option to pick a TLS ABI for CHERI and need to ensure it's overridden to the host's default when bootstrapping rather than using a potentially-incompatible (or not-yet-supported-by-host-rtld) one.

jrtc27 added inline comments.
share/mk/bsd.mkopt.mk
148

As pointed out by @jhb downstream...

This revision now requires review to proceed.Feb 9 2026, 1:35 PM