HomeFreeBSD

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

Description

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

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.

Reviewed by: brooks, jhb, imp
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D40570

Details

Provenance
jrtc27Authored on Jun 27 2023, 11:10 PM
Reviewer
brooks
Differential Revision
D40570: Makefile.libcompat: Handle MK_FOO varying for native and compat arches
Parents
rG5ed851515129: Makefile.libcompat: Remove unused _LC_INCDIRS
Branches
Unknown
Tags
Unknown