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)
Tue, Jun 11, 8:41 AM
Unknown Object (File)
Tue, Jun 11, 8:33 AM
Unknown Object (File)
Tue, Jun 11, 8:33 AM
Unknown Object (File)
Tue, Jun 11, 8:19 AM
Unknown Object (File)
Mar 22 2024, 6:24 PM
Unknown Object (File)
Mar 9 2024, 9:57 AM
Unknown Object (File)
Mar 9 2024, 9:57 AM
Unknown Object (File)
Mar 9 2024, 9:46 AM
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