Page MenuHomeFreeBSD

Move DIRDEPS_BUILD settings to sys.dirdeps.mk
ClosedPublic

Authored by sjg on May 10 2023, 11:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 8:03 AM
Unknown Object (File)
Sun, Mar 31, 1:11 AM
Unknown Object (File)
Sun, Mar 31, 1:11 AM
Unknown Object (File)
Sat, Mar 30, 3:28 AM
Unknown Object (File)
Feb 17 2024, 2:42 AM
Unknown Object (File)
Jan 28 2024, 1:54 PM
Unknown Object (File)
Jan 28 2024, 1:54 PM
Unknown Object (File)
Dec 23 2023, 12:46 AM
Subscribers

Details

Summary

When originally implemented, there was no distinction between
DIRDEPS_BUILD and META_MODE, they were one and the same.

META_MODE however is useful by itself, but since meta.sys.mk
had lots of settings related to DIRDEPS_BUILD its use was limited
to DIRDEPS_BUILD.

Move (most) DIRDEPS_BUILD related items to sys.dirdeps.mk
so that meta.sys.mk can be used for just META_MODE.
There is of course some bluring of the lines, so settings remain
in meta.sys.mk

Add MK_META_ERROR_TARGET to enable the META_MODE .ERROR target
independent of DIRDEPS_BUILD, it copies failed .meta files to ${SB}/error
to make it easier to identify the cause of build failures.

Since sys.dirdeps.mk should be included first, most of
local.meta.sys.mk becomes local.sys.dirdeps.mk
and some other bits need to move to local.sys.dirdeps.env.mk

Also fix dirdeps.mk to not add CURDIR to DIRDEPS when it is SRCTOP.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sjg requested review of this revision.May 10 2023, 11:57 PM

Didn't have latest sys.dirdeps.mk

This revision is now accepted and ready to land.May 11 2023, 7:35 PM
This revision now requires review to proceed.May 11 2023, 8:08 PM
This revision is now accepted and ready to land.May 11 2023, 9:03 PM
This revision was automatically updated to reflect the committed changes.