]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a tools/build/make.py script that bootstraps bmake and then runs the build
authorarichardson <arichardson@FreeBSD.org>
Mon, 21 Sep 2020 15:48:57 +0000 (15:48 +0000)
committerarichardson <arichardson@FreeBSD.org>
Mon, 21 Sep 2020 15:48:57 +0000 (15:48 +0000)
commit096ffd47992b426218d0d9e4c841d92bd0812cf8
tree69e005525517d2e30c9ff65dea5408d8974403e6
parentb262c464a675a5272f924e915bb588c44ed995b0
Add a tools/build/make.py script that bootstraps bmake and then runs the build

This makes it possible to compile on non-FreeBSD systems since make will
usually be GNU make there. Even if they include bmake, it will often
either be a broken version or too old to build FreeBSD.

This should be the last commit needed to compile FreeBSD on Linux+macOS.
After over two years, I've finally managed to upstream all our local CheriBSD
changes to allow building on Linux (and as a result of being reviewed by more
people they are slightly less ugly than they were before).

It should now be possible to run the following to build on Linux+macOS if you
have LLVM/Clang 10 or newer installed:
MAKEOBJDIRPREFIX=/somewhere ./tools/build/make.py TARGET=amd64 TARGET_ARCH=amd64 buildworld

I have only tested macOS 15, Ubuntu 18.04 and openSUSE Leap, but other Linux
distributions might also work (as long as they ship a recent GLibc and compiler).

Reviewed By: emaste (should be fine to commit to tools/)
Differential Revision: https://reviews.freebsd.org/D16767
tools/build/make.py [new file with mode: 0755]