Page MenuHomeFreeBSD

Move MACHINE/MACHINE_ARCH handling to sys.machine.mk
ClosedPublic

Authored by sjg on May 13 2023, 5:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 9:39 PM
Unknown Object (File)
Sat, Jan 11, 2:48 AM
Unknown Object (File)
Dec 7 2024, 6:57 PM
Unknown Object (File)
Dec 4 2024, 8:56 AM
Unknown Object (File)
Nov 11 2024, 5:25 AM
Unknown Object (File)
Nov 11 2024, 5:25 AM
Unknown Object (File)
Nov 11 2024, 5:25 AM
Unknown Object (File)
Nov 11 2024, 5:25 AM
Subscribers

Details

Summary

Rather than define the TARGETS and TARGET_ARCHES in src/Makefile
put them in sys.machine.mk so they can also be leveraged by
non-top-level builds.

We have TARGET_MACHINE_LIST as the list of MACHINES we build for.

For each MACHINE we have a MACHINE_ARCH_LIST_${MACHINE}
and the first entry of each list is used as default for
MACHINE_ARCH_${MACHINE}

We can now remove a bunch of MACHINE_ARCH.* handling from
local.sys.dirdeps*mk

Sponsored by: Juniper Networks, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 51478
Build 48369: arc lint + arc unit

Event Timeline

sjg requested review of this revision.May 13 2023, 5:13 AM

Keep ALL_MACHINE_LIST in local.sys.dirdeps.env.mk

dirdeps.mk etc works on ALL_MACHINE_LIST so it may end up different
to TARGET_MACHINE_LIST

This revision is now accepted and ready to land.May 13 2023, 5:29 AM