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, Nov 12, 1:52 PM
Unknown Object (File)
Tue, Nov 12, 1:52 PM
Unknown Object (File)
Tue, Nov 12, 1:52 PM
Unknown Object (File)
Oct 5 2024, 8:51 PM
Unknown Object (File)
Oct 1 2024, 3:10 PM
Unknown Object (File)
Sep 24 2024, 10:53 AM
Unknown Object (File)
Sep 17 2024, 4:36 PM
Unknown Object (File)
Sep 17 2024, 1:57 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