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
F102555032: D40053.id121823.diff
Thu, Nov 14, 12:10 AM
Unknown Object (File)
Tue, Nov 12, 12:34 PM
Unknown Object (File)
Sun, Nov 10, 11:07 AM
Unknown Object (File)
Sun, Nov 10, 11:04 AM
Unknown Object (File)
Sun, Nov 10, 11:04 AM
Unknown Object (File)
Wed, Nov 6, 3:26 PM
Unknown Object (File)
Wed, Nov 6, 3:26 PM
Unknown Object (File)
Wed, Nov 6, 3:21 PM
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.