<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/share/mk/local.meta.sys.mk, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-05-11T23:15:04Z</updated>
<entry>
<title>Move DIRDEPS_BUILD settings to sys.dirdeps.mk</title>
<updated>2023-05-11T23:15:04Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2023-05-11T23:15:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bee3d4bf8ed55260d8cfc6d168ffa1afb49ef6a8'/>
<id>urn:sha1:bee3d4bf8ed55260d8cfc6d168ffa1afb49ef6a8</id>
<content type='text'>
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.

Reviewed by:	bdrewery
Differential Revision:	https://reviews.freebsd.org/D40053
</content>
</entry>
<entry>
<title>local.meta.sys.mk set BOOTSTRAPPING</title>
<updated>2023-05-03T19:20:02Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2023-05-03T19:20:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9f27341c336aa12f6c7163c17e646e76c813b689'/>
<id>urn:sha1:9f27341c336aa12f6c7163c17e646e76c813b689</id>
<content type='text'>
When building for host on non-FreeBSD
some makefiles want to see BOOTSTRAPPING defined.

With this libmd and hence nmtree build ok
</content>
</entry>
<entry>
<title>local.meta.sys.mk skip OBJTOP for host</title>
<updated>2023-04-23T00:59:12Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2023-04-23T00:59:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3483454556d0e252c9e7c89d35bffe9addeef2ae'/>
<id>urn:sha1:3483454556d0e252c9e7c89d35bffe9addeef2ae</id>
<content type='text'>
It was already done by local.meta.sys.env.mk
</content>
</entry>
<entry>
<title>Extract some of local.meta.sys.mk to local.meta.sys.env.mk</title>
<updated>2023-04-22T22:07:53Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2023-04-22T22:07:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cf20b1f81c1043faca2a5e4fe16bc48679494fe0'/>
<id>urn:sha1:cf20b1f81c1043faca2a5e4fe16bc48679494fe0</id>
<content type='text'>
Latest meta.sys.mk follows sys.mk in including local.meta.sys.env.mk
and local.meta.sys.mk late, but we have things we need done early
so move them to local.meta.sys.env.mk
</content>
</entry>
<entry>
<title>Update meta.sys.mk and related local*mk</title>
<updated>2023-04-21T03:38:53Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2023-04-21T03:38:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f957a32dacfd0e18e574d0797e4bec4bec9f15af'/>
<id>urn:sha1:f957a32dacfd0e18e574d0797e4bec4bec9f15af</id>
<content type='text'>
Move the setting of TARGET_SPEC_VARS to local.sys.env.mk
so meta.sys.mk can do the processing, and include local.meta.sys.mk
later.

Move the setting of GENDIRDEPS_FILTER*_VARS from local.gendirdeps.mk
to local.meta.sys.mk so we can automatically set DEP_* at level 1+
to avoid syntax errors when DEP_* variables are used in conditionals
in Makefile.depend files.

Update gendirdeps.mk just to get the documentation about the above.
No functional change.

local.dirdeps.mk be more careful about adding to DIRDEPS to avoid
unnecessary overhead, and introducing cycles in the graph.
Also set DEP_MACHINE_CPUARCH.

Reviewed by:	stevek
Sponsored by:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D39737
</content>
</entry>
<entry>
<title>Fix building host tools for host</title>
<updated>2023-04-20T17:05:43Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2023-04-20T17:05:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8fe4f8f7a75f3f6d1fc52e31a6d25a112d4644fd'/>
<id>urn:sha1:8fe4f8f7a75f3f6d1fc52e31a6d25a112d4644fd</id>
<content type='text'>
Several makefile depend on tools built for host.
At least when using DIRDEPS_BUILD we can build these for the
pseudo machine "host" to facilitate building on older host versions.

Ideally we would build these tools in their own directories to avoid
building more than needed.

For now, setting an appropriate default for BTOOLSPATH will suffice

Reviewed by:	stevek
Sponsored by:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D39708
</content>
</entry>
<entry>
<title>meta: remove LDFLAGS setting when cross building</title>
<updated>2023-04-20T01:40:29Z</updated>
<author>
<name>Stephen J. Kiernan</name>
<email>stevek@FreeBSD.org</email>
</author>
<published>2023-04-17T23:36:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=64a67b72660d6f6b38e10ec66f2ce7474824b109'/>
<id>urn:sha1:64a67b72660d6f6b38e10ec66f2ce7474824b109</id>
<content type='text'>
The setting was left over from older clang version and is not
necessary any more (and also causes link issues.)

Reviewed by:	sjg
</content>
</entry>
<entry>
<title>meta: Allow TARGET_SPEC_VARS to be overridden</title>
<updated>2023-04-18T04:25:59Z</updated>
<author>
<name>Stephen J. Kiernan</name>
<email>stevek@FreeBSD.org</email>
</author>
<published>2023-04-18T04:25:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d664658015258eaaa50776db7b230669f91c6f9b'/>
<id>urn:sha1:d664658015258eaaa50776db7b230669f91c6f9b</id>
<content type='text'>
Reviewed by:	sjg
Obtained from:	Juniper Networks, Inc.
</content>
</entry>
<entry>
<title>Remove the riscv64sf architecture.</title>
<updated>2023-04-12T18:09:27Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2023-04-12T18:09:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1ca12bd927d76f5a1b9aad2c72f673a3b01919c0'/>
<id>urn:sha1:1ca12bd927d76f5a1b9aad2c72f673a3b01919c0</id>
<content type='text'>
Reviewed by:	jrtc27, arichardson, br, kp, imp, emaste
Differential Revision:	https://reviews.freebsd.org/D39496
</content>
</entry>
<entry>
<title>Allow site.*.mk to augment local.*.mk and src.*.mk</title>
<updated>2022-12-07T19:30:35Z</updated>
<author>
<name>Simon J. Gerraty</name>
<email>sjg@FreeBSD.org</email>
</author>
<published>2022-12-07T19:30:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=073ccb9d5553684590ef1ba4de3d5af77a53ee94'/>
<id>urn:sha1:073ccb9d5553684590ef1ba4de3d5af77a53ee94</id>
<content type='text'>
Add some extra customization points so that FreeBSD build
can be adapted to local requirements.
We use these to minimize changes to share/mk

Reviewed by:	stevek
Sponsored by:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D37617
</content>
</entry>
</feed>
