Add English and Simplified Chinese documentation under docs/, covering the boot chain, build, boot, debugging, porting, drivers, XNU 4 KiB pages, macOS and device notes. Add the Pages workflow and CNAME. Rename the boot manager from CrabApple to UniXNU across the package, symbols, paths, configuration file and logs. Update README with the documentation badge and CONTRIBUTING link.
17 lines
521 B
Bash
Executable File
17 lines
521 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
|
if [ "$(uname -s)" = Darwin ]; then
|
|
LLVM_PREFIX=${LLVM_PREFIX:-$(brew --prefix llvm)}
|
|
LLD_PREFIX=${LLD_PREFIX:-$(brew --prefix lld)}
|
|
TOOLS=$ROOT/.cache/toolchain
|
|
mkdir -p "$TOOLS"
|
|
for tool in clang llvm-lib llvm-rc; do
|
|
ln -sf "$LLVM_PREFIX/bin/$tool" "$TOOLS/$tool"
|
|
done
|
|
ln -sf "$LLD_PREFIX/bin/lld-link" "$TOOLS/lld-link"
|
|
export CLANG_BIN=$TOOLS/
|
|
fi
|
|
export JOBS=${JOBS:-4}
|
|
exec "$ROOT/package/build.sh" "$@"
|