History log of /freebsd-current/tools/build/mk/Makefile.boot
Revision Date Author Comments
# 364c014d 26-May-2024 Warner Losh <imp@FreeBSD.org>

cross-tools: fts has different types for cmp routine

fts has different types for its compare rotuine. Other systems, not
4.4BSD based, have a non-const version. Before we tested against
__GLIBC__, but now we test against __linux__ because that's Linux's API
and musl doesn't define __GLIBC__.

In addition, link against libftl on this platform since musl doesn't
include ftl routines in libc, but rather in libftl.

Co-authored-by: Val Packett <val@packett.cool>
Sponsored by: Netflix
Pull Request: https://github.com/freebsd/freebsd-src/pull/1066
Reviewed by: val_packett.cool
Differential Revision: https://reviews.freebsd.org/D45349


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

Remove $FreeBSD$: one-line sh pattern

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


# b347c228 21-Apr-2023 Alex Richardson <arichardson@FreeBSD.org>

cross-build: Add common compatibility headers after OS-specific ones

The current order is rather counter-intuitive and it appears to work fine
if we swap the order.

Pull Request: https://github.com/freebsd/freebsd-src/pull/725
Reviewed by: imp


# 6f6fbfa3 15-Jan-2022 Ed Maste <emaste@FreeBSD.org>

Remove quotes around Makefile .error/.warn/.info strings

The text after .error et al is emitted verbatim.

Reviewed by: sjg
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33904


# 8d5d3295 06-Dec-2021 Jessica Clarke <jrtc27@FreeBSD.org>

Bootstrap libz when cross-building from non-FreeBSD

This is needed now libdwarf depends on libz.

Fixes: dbf05458e3bd ("libdwarf: Support consumption of compressed ELF sections")
MFC after: 1 week


# 5022d54e 06-Dec-2021 Jessica Clarke <jrtc27@FreeBSD.org>

Makefile.boot: Fix copy/paste error in LIBNV's crossbuild override

Only noticed due to needing to change the surrounding lines, so
presumably nothing currently needs this.

MFC after: 1 week


# 05066fad 06-Dec-2021 Jessica Clarke <jrtc27@FreeBSD.org>

Makefile.boot: Make -Wno-typedef-redefinition Clang-specific

GCC doesn't have this warning and so also doesn't have the flag to
disable it, resulting in it spewing a bunch of warnings about the
command line option being unrecognised.

MFC after: 1 week


# 0348c8fc 19-Jan-2021 Alex Richardson <arichardson@FreeBSD.org>

getopt: Fix conversion from string-literal to non-const char *

Define a non-const static char EMSG[] = "" to avoid having to add
__DECONST() to all uses of EMSG. Also make current_dash a const char *
to fix this warning.


# b500c184 16-Dec-2020 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>

Drop some unncessary stale code from Makefile.boot

No longer required after 0e1e341b486cdf4769195ba1e5b3cb32e7387873.


# 4e64fb9f 14-Dec-2020 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>

Fix warnings during bootstrap on Linux systems

Most warnings are currently off for the boostrap phase, but once D27598
lands they will be enabled again.


# 79e02149 18-Sep-2020 Alex Richardson <arichardson@FreeBSD.org>

Fix dtrace tools bootstrap on non-FreeBSD after OpenZFS import

This required surprisingly few build system changes and only two changes to the
openZFS compat headers which have been upstreamed as
https://github.com/openzfs/zfs/pull/10863

Reviewed By: #zfs, freqlabs
Differential Revision: https://reviews.freebsd.org/D26193


# 0a81de38 10-Sep-2020 Alex Richardson <arichardson@FreeBSD.org>

Silence GCC's -Wno-unused-result during bootstrap

Unlike clang, GCC still warns even with (void) casts (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425)


# 7ec1ec4f 25-Aug-2020 Alex Richardson <arichardson@FreeBSD.org>

Add missing FreeBSD functions to -legacy when building on macOS/Linux

In most cases this simply builds the file from lib/libc for missing
functions (e.g. strlcpy on Linux etc.). In cases where this is not possible
I've added an implementation to tools/build/cross-build.

The fgetln.c/fgetwln.c/closefrom.c compatibility code was obtained from
https://gitlab.freedesktop.org/libbsd/libbsd, but I'm not sure it makes
sense to import it into to contrib just for these three bootstrap files.

Reviewed By: brooks
Differential Revision: https://reviews.freebsd.org/D25978


# cd4d034f 21-Aug-2018 Alex Richardson <arichardson@FreeBSD.org>

Relax the check added in 338096

Checking for any include below ${SRCTOP}/sys is too strict and breaks
e.g. mkimg which includes sys/sys/disk. ABI issues will only be caused
by including headers in sys/sys since they might not match the host.

Approved By: jhb (mentor)
Suggested By: imp


# 2f0437da 21-Aug-2018 Alex Richardson <arichardson@FreeBSD.org>

Fix -DWITHOUT_AUTO_OBJ build of rescue after r338096

Approved By: jhb (mentor)


# 958dc017 20-Aug-2018 Alex Richardson <arichardson@FreeBSD.org>

Avoid depending on system headers from the source tree during bootstrap

This can cause surprising errors if the build tools is built against
headers that don't match the host system. It is also required in order
to allow building on non-FreeBSD systems where the headers in
/usr/include/sys are usually completely incompatible with those in the
source tree.

I added an error to Makefile.boot if this is done and found this was
only the case in libnv. With this error in the Makefile ABI breakages
such as r336019 should no longer be possible.

Reviewed By: bdrewery, kevans
Approved By: jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D16186


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

tools: minor spelling fixes.

Mostly comments but also some user-visible strings.

MFC after: 2 weeks


# 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>


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 6ad80d4f 27-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

As threatened, drop support for source upgrades from pre-5.3.

Inspired by: obrien


# cb66f4dd 12-Apr-2003 Ruslan Ermilov <ru@FreeBSD.org>

Make sure legacy stuff comes last. Some tools that use
legacy stuff (binutils) depend on this order.

For this to work, provide (and use) specialized versions
of bsd.prog.mk and bsd.lib.mk that include the standard
versions first, then augment CFLAGS, DPADD, LDADD, and
LDFLAGS as necessary, with the legacy stuff.

Tested on: 4.0-RELEASE