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
F173112366: D40570.id123872.diff
Wed, Sep 23, 5:02 PM
Unknown Object (File)
Tue, Sep 22, 11:11 AM
Unknown Object (File)
Mon, Sep 21, 9:58 AM
Unknown Object (File)
Sat, Sep 19, 1:19 AM
Unknown Object (File)
Sat, Sep 19, 1:18 AM
Unknown Object (File)
Sat, Sep 19, 1:01 AM
Unknown Object (File)
Sat, Aug 29, 5:33 AM
Unknown Object (File)
Fri, Aug 28, 1:01 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