Builds the PlayStation 2 GCC toolchain for Linux, Windows and macOS: the EE (Emotion Engine) compiler with newlib and pthread support, and the IOP (I/O Processor) compiler. All binaries are statically linked.
Each script builds the toolchain for one platform from a release tag (checked out into a temporary worktree) and writes the zip to build/release/. --publish creates the tag's GitHub release if needed and uploads the zip to it.
| Script | Output | Requires |
|---|---|---|
scripts/release-linux.sh <tag> |
ps2-toolchain-<version>-linux-amd64.zip |
Docker |
scripts/release-windows.sh <tag> |
ps2-toolchain-<version>-windows-amd64.zip |
Docker |
scripts/release-macos.sh <tag> |
ps2-toolchain-<version>-darwin-arm64.zip |
macOS with Homebrew: brew install autoconf automake libtool bison flex texinfo gmp mpfr libmpc zip |
scripts/release-macos.sh v2026.11.05 # build only
scripts/release-macos.sh v2026.11.05 --publish # also upload to the releaseThe Linux and Windows scripts build linux/amd64 images; see docker/README.md.
Each target builds on its own:
cd ee && ./build.sh # all steps
cd ee && ./build.sh 3 # only step 3 (newlib)PS2DEV is the install prefix. Sources are cloned into build/<target>/; a bad ref fails before any compilation starts.
| Path | Contents |
|---|---|
ee/, iop/ |
Per-target config.sh (source pins), build.sh, and ordered steps/ |
lib/common.sh |
Source fetching, host environment, Canadian-cross helpers |
scripts/ |
Release, license bundling and permission helpers |
docker/ |
Linux and Windows build images |
.github/workflows/ |
Build and release workflows |
CC0 1.0 (see LICENSE). The toolchain components built here carry their own licenses, which are bundled into every release under LICENSES/.