History log of /freebsd-current/share/mk/src.sys.env.mk
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 073ccb9d 07-Dec-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Allow site.*.mk to augment local.*.mk and src.*.mk

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


# f9ee4156 03-May-2022 Alfredo Dal'Ava Junior <alfredo@FreeBSD.org>

build target triple variable from sys/conf/newvers.sh

Retrieve FreeBSD revision number directly from sys/conf/newvers.sh
when building the compiler target triple value, avoiding manual
intervention on other files every new release.

Reviewed by: imp
MFC after: 2 months
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D34429


# 844939d7 17-Jan-2020 Bryan Drewery <bdrewery@FreeBSD.org>

META_MODE: Allow 'make all install' to work with filemon.

Filemon will add the ability to ignore the cookie if the installed file is
missing. Without filemon that's not possible though so if the cookie is present
an the command unchanged then the install wouldn't run.

Sponsored by: DellEMC
MFC after: 2 weeks


# 743ab018 03-Mar-2018 Bryan Drewery <bdrewery@FreeBSD.org>

Ignore MAKEOBJDIRPREFIX from src-env.conf in sub-makes.

A sub-make, such as in 'make buildworld', may want to override MAKEOBJDIRPREFIX
but is unable to do so if src-env.conf is forcing it to another value. Without
using '?=' the sub-make may use the wrong .OBJDIR.

Reported by: eadler
Sponsored by: Dell EMC


# 154733e8 05-Dec-2017 Bryan Drewery <bdrewery@FreeBSD.org>

Deal with bmake-20170301 no longer resolving -C like it used to.

Several checks assume .CURDIR is resolved, such as for determining RELDIR from
SRCTOP/.CURDIR. If -C is used then the path is no longer resolved like it was
before which is problematic for symlinked source trees. A similar change was
also made to ports post bmake-20170301.

This fixes 'make -C <symlinked path> buildworld' using the wrong OBJDIR.

Reported by: rstone
Sponsored by: Dell EMC


# f70bac64 18-Nov-2017 Bryan Drewery <bdrewery@FreeBSD.org>

Evaluate options after including src-env.conf and before Makefile.sys.inc.

Fixes top-level breakage in r325974.

Pointyhat to: bdrewery
Sponsored by: Dell


# f7789552 18-Nov-2017 Bryan Drewery <bdrewery@FreeBSD.org>

Include Makefile.sys.inc if possible for top-level only.

This will allow disabling some things like AUTO_OBJ early if not needed for the
directory/targets, without putting special logic into share/mk/*.sys.mk.

Sponsored by: Dell


# dfa09989 01-Nov-2017 Bryan Drewery <bdrewery@FreeBSD.org>

Add option UNIFIED_OBJDIR, on by default, which moves the default build OBJDIR.

This changes the build OBJDIR from the older style of /usr/obj/<srcdir> for
native builds, and /usr/obj/<target>.<target_arch>/<srcdir> for cross builds to
a new simpler format of /usr/obj/<srcdir>/<target>.<target_arch>. This
new format is used regardless of cross or native build. It allows
easier management of multiple source tree object directories.

The UNIFIED_OBJDIR option will be removed and its feature made permanent
for the 12.0 release.

Relnotes: yes (don't note UNIFIED_OBJDIR option since it will be removed)
Prior work: D3711 D874
Reviewed by: gjb, sjg
Discussed at: https://lists.freebsd.org/pipermail/freebsd-arch/2016-May/017805.html
Discussed with: emaste
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12840


# 95137b22 30-Oct-2017 Bryan Drewery <bdrewery@FreeBSD.org>

Add RELOBJTOP and RELSRCTOP for relative paths.

RELSRCTOP is likely not as useful since make will always be running from
inside of .OBJDIR and using something like ${.CURDIR}/${RELSRCTOP} is
not redundant for ${SRCTOP}.

Sponsored by: Dell EMC Isilon


# 3c39d0a0 25-Aug-2016 Bryan Drewery <bdrewery@FreeBSD.org>

WITH_META_MODE: Don't let subdir traversals for 'make install' re-enable meta mode.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division


# 7c75c54f 26-May-2016 Bryan Drewery <bdrewery@FreeBSD.org>

Fix MAKESYSPATH not being sent to sub-makes after r266566.

Because bmake defaults to .../share/mk now, this code was not doing anything
to help objdir builds (such as the rescue build). Export the same default.

Sponsored by: EMC / Isilon Storage Division


# 99dd498c 20-May-2016 Bryan Drewery <bdrewery@FreeBSD.org>

WITH_META_MODE: Disable for 'make install' from top-level.

See r298220 for more explanation. We don't want to prevent installing
if a cookie exists for the install target.

Sponsored by: EMC / Isilon Storage Division


# ba7a7c1b 23-Sep-2015 Bryan Drewery <bdrewery@FreeBSD.org>

RELDIR is useful without META_MODE. Always define it.

It is the CURDIR without the SRC base location in it.

Sponsored by: EMC / Isilon Storage Division


# daf514d0 19-Jun-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Move include of make.conf back to its old position.

This means moving include of local.sys.mk and src.sys.mk too.
Introduce new includes to take the early slot, for the purpose
of being able to influence toolchains and the like.

Differential Revision: D2860
Reviewed by: imp