Building the sysroot¶
BIN=/path/to/clang-dos/bin LLVM_SRC=/path/to/llvm \
PICOLIBC_SRC=/path/to/picolibc ./build-sysroot.sh m68k-amigaos
builds picolibc and the builtins (with meson, ninja and cmake), and the
AmigaOS headers and libamiga.a (with tools/aros-ndk.py), into
m68k-amigaos/include, m68k-amigaos/fd and m68k-amigaos/lib. The
AROS headers are fetched by tools/fetch-aros.sh at a tested commit
(about 30 MB, headers only), or set AROS_SRC to an AROS checkout. Set
NDK=NDK3.2.lha to install the NDK's headers instead. The clang-dos
toolchain package (clang-dos/dos-sdk) runs this script.