Option A: Manual Installation
# Install cross-compiler
sudo apt-get install gcc-sh4-linux-gnu binutils-sh4-linux-gnu
# Clone KOS
git clone https://github.com/KallistiOS/KallistiOS.git
cd KallistiOS
make
# Set environment variables
export KOS_BASE=$(pwd)
export KOS_CC_PREFIX=sh4-unknown-elf-
Option B: Docker Container
# Build Docker image
docker build -t d3tui-toolchain .
# Run build in container
docker run --rm -v $(pwd):/workspace d3tui-toolchain make
# Use pre-configured toolchain from /from
source /from/toolchains/dreamcast/environ.sh