Page MenuHomeFreeBSD

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

Authored by jrtc27 on Sun, Jan 25, 2:33 PM.
Tags
None
Referenced Files
F145523685: D54876.diff
Fri, Feb 20, 11:34 PM
Unknown Object (File)
Sun, Feb 8, 7:08 PM
Unknown Object (File)
Mon, Feb 2, 6:20 PM
Unknown Object (File)
Fri, Jan 30, 8:31 PM
Unknown Object (File)
Tue, Jan 27, 4:41 PM
Unknown Object (File)
Mon, Jan 26, 8:15 AM
Unknown Object (File)
Mon, Jan 26, 4:47 AM
Unknown Object (File)
Mon, Jan 26, 2:02 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.Sun, Jan 25, 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.Mon, Feb 9, 1:35 PM