History log of /freebsd-current/share/mk/local.gendirdeps.mk
Revision Date Author Comments
# 5f98380c 29-Oct-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Stop adding $FreeBSD$ to Makefile.depend

Reviewed by: stevek


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

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


# f957a32d 20-Apr-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Update meta.sys.mk and related local*mk

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


# e300f328 28-Dec-2022 Simon J. Gerraty <sjg@FreeBSD.org>

Add site.{autodep,gendirdeps}.mk

Allow for site customization to minimize churn in share/mk

Reviewed by: stevek
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37895


# 960b77be 24-Nov-2020 Simon J. Gerraty <sjg@FreeBSD.org>

Update dirdeps.mk et al to latest

Move some local tweaks to local.*.mk

Reviewed by: bdrewery
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D27300


# c4501804 28-Feb-2020 Ed Maste <emaste@FreeBSD.org>

retire the LLVM_LIBUNWIND option

LLVM's libunwind is used on all FreeBSD-supported CPU architectures and
is a required component.

Reviewed by: brooks (earlier)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23123


# 43e84039 31-Jan-2020 Ed Maste <emaste@FreeBSD.org>

retire BSD_CRTBEGIN option

BSD crt is currently used on all architectures (other than sparc64).
Remove the option and use BSD crt everywhere as part of the GCC 4.2.1
retirement plan.

https://lists.freebsd.org/pipermail/freebsd-arch/2020-January/019823.html

PR: 239851
Reviewed by: andrew, brooks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23122


# cd0d51ba 04-Jan-2020 Kyle Evans <kevans@FreeBSD.org>

Provide libssp based on libc

For libssp.so, rebuild stack_protector.c with FORTIFY_SOURCE stubs that just
abort built into it.

For libssp_nonshared.a, steal stack_protector_compat.c from
^/lib/libc/secure and massage it to maintain that __stack_chk_fail_local
is a hidden symbol.

libssp is now built unconditionally regardless of {WITH,WITHOUT}_SSP in the
build environment, and the gcclibs version has been disconnected from the
build in favor of this one.

PR: 242950 (exp-run)
Reviewed by: kib, emaste, pfg, Oliver Pinter (earlier version)
Also discussed with: kan
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D22943


# 312809fe 11-Dec-2019 Simon J. Gerraty <sjg@FreeBSD.org>

Update dirdeps.mk and gendirdeps.mk

The env space consumed by exporting all libc's .meta files
left little room for command line,
so unexport when done.

Update dirdeps.mk to latest and add
dirdeps-targets.mk to simplify/update targets/Makefile

Makefile changes to go with Makefile.depend changes in D22494

Reviewed by: bdrewery
MFC after: 1 week
Sponsored by: Juniper Networks
Differential Revision: https://reviews.freebsd.org/D22495


# a6589ab7 02-Aug-2018 Simon J. Gerraty <sjg@FreeBSD.org>

Update dirdeps.mk et al to latest

dirdeps.mk and meta.autodep.mk will now look for
Makefile.depend.options
to handle optional dependencies, the work is all done by
dirdeps-options.mk

Also update to latest meta.stage.mk and gendirdeps.mk

Reviewed by: bdrewery
Differential Revision: https://reviews.freebsd.org/D15701


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

DIRDEPS_BUILD: libgcc now depends on MK_LLVM_LIBUNWIND

The dependency on gnu/lib/libgcc or lib/libgcc* is determined
at 'make dirdeps' time.

Sponsored by: Dell EMC Isilon


# 142d4b37 02-Sep-2016 Bryan Drewery <bdrewery@FreeBSD.org>

DIRDEPS_BUILD: Clang headers are now in lib/clang/headers

Sponsored by: EMC / Isilon Storage Division


# dab362ec 01-Sep-2016 Bryan Drewery <bdrewery@FreeBSD.org>

DIRDEPS_BUILD: Clang libraries now have nested directories/objects in OBJDIR.

These nested directories are not build targets. They just map back to
lib/clang/lib{clang,llvm,llvmminimal,lldb}. Avoid adding these nested
directories into Makefile.depend.

Sponsored by: EMC / Isilon Storage Division


# 73571281 11-May-2016 Bryan Drewery <bdrewery@FreeBSD.org>

DIRDEPS_BUILD: Exclude host tools for Makefile.depend.host as well.

Sponsored by: EMC / Isilon Storage Division


# ca7f4027 01-May-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

share: minor spelling fixes.

Mostly comments but these tend to be user-visible.

MFC after: 2 weeks


# 3c42abd8 30-Nov-2015 Bryan Drewery <bdrewery@FreeBSD.org>

META MODE: Don't trim out lib/clang/include dependency.

Doing this causes more trouble than it is worth regarding cyclic
dependencies. It should not be needed after cleaning up MACHINE=host
builds in r291324.

Sponsored by: EMC / Isilon Storage Division


# 4aa63711 25-Nov-2015 Bryan Drewery <bdrewery@FreeBSD.org>

META MODE: Fix 'make bootstrap-tools'.

The main problem was bitrot after elftoolchain being swapped in for the
GNU toolchain.

This also reworks how the list of 'host allowed' libraries is determined
to only allow INTERNALLIBs, which is needed for libelftc to come in.

For usr.bin/readelf use the same hack, as libelf and libdward, to bring in
the needed sys/ headers for host builds. This has not yet been a problem due
to readelf not being built as a host tool in buildworld. This is possible
in the meta build though when building the toolchain.

Sponsored by: EMC / Isilon Storage Division


# dba62d8d 16-Nov-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Default MK_META_MODE from MK_DIRDEPS_BUILD

This allows most of the build to simply consider MK_META_MODE

Update to latest dirdeps.mk so we can do:

make -f dirdeps.mk bin/cat.i386

Reviewed by: bdrewery


# a0a7796d 30-Sep-2015 Bryan Drewery <bdrewery@FreeBSD.org>

META_MODE: Remove unneeded groff/tmac special GENDIRDEPS_FILTER.

This is converting the path usr/share/tmac.*stage to something else, but
nothing ever installs or reads from such a path. They might look in
stage.*usr/share/tmac, but that's not what this is matching. Additionally
the .dirdeps match all of the tmac files back to gnu/usr.bin/groff/tmac
fine.

Sponsored by: EMC / Isilon Storage Division


# 8311337d 13-Jun-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Avoid trailing white-space


# 4113aa90 26-May-2015 Simon J. Gerraty <sjg@FreeBSD.org>

Move META_MODE bits to local.meta.sys.mk

By moving META_MODE bits from local.sys.mk, they are easier
to skip when MK_META_MODE=no

Update some filters to cope with sync from head.

If buildworld etc or WITHOUT_META_MODE disable all the META_MODE
related options.


# 61ad1ff5 30-Nov-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Renamed pkgs/ targets/


# 5633315b 16-May-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Suppress optional dependencies


# 04667c47 12-Oct-2013 Simon J. Gerraty <sjg@FreeBSD.org>

Add more vars we subst into DIRDEPS eg. BOOT_MACHINE_DIR and KERNEL_NAME.
Make it easier to add more.


# 7750ad47 22-Aug-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Sync FreeBSD's bmake branch with Juniper's internal bmake branch.

Requested by: Simon Gerraty <sjg@juniper.net>