This script make it easy to compile FreeBSD on MacOS out of the box.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
very cool :-) maybe optional iso/usb/vm image creation with selectable format would be useful too? :-)
Comment Actions
./tools/build/cross-build-macos.sh is a wrapper for ./tools/build/make.py on macOS - to make it easy to compile FreeBSD on macOS.
Comment Actions
- support multiple LLVM versions (clang19 and clang20)
- supports Apple M1 arm64 and Apple/Intel
- supports concurrent cross building (e.g. current and stable at the same time with same MAKEOBJDIRPREFIX)
- supported make targets: buildworld; buildkernel; packages; -C./release ftp
- by default it runs fast (no toolchain etc.) for buildworld + buildkernel
- add a help message: ./cross-build-macos.sh help
- keep up to 32 logfiles
- add a debug mode (debug=1)
- keep track of good/bad git commits in .cross-build-macos-git-*
- supported branches: main, stable/15 (buildworld + buildkernel)
- tested on macOS 14.x, 15.x, 26.x