Page MenuHomeFreeBSD

Makefile.libcompat: Handle MK_FOO varying for native and compat arches
ClosedPublic

Authored by jrtc27 on Jun 15 2023, 9:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 30, 4:19 AM
Unknown Object (File)
Thu, Oct 30, 1:13 AM
Unknown Object (File)
Fri, Oct 24, 5:15 AM
Unknown Object (File)
Thu, Oct 23, 3:21 AM
Unknown Object (File)
Wed, Oct 15, 6:50 AM
Unknown Object (File)
Wed, Oct 15, 6:50 AM
Unknown Object (File)
Wed, Oct 15, 6:50 AM
Unknown Object (File)
Tue, Oct 14, 8:50 PM
Subscribers

Details

Summary

Currently Makefile.libcompat queries a few MK_FOO variables to determine
what is being built. However, it is plausible (and indeed, downstream
in CheriBSD, this is the case) that these may vary between the native
and the compat architecture. In order to correctly determine their
values for the compat architecture, we need to defer their evaluation
until we are in the compat sub-make where src.opts.mk will give us the
right value for the compat MACHINE_ARCH.

Obtained from: CheriBSD

Diff Detail

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