We build OpenCCA in an x86-docker container. Make sure to have the prerequiresites installed.
sudo apt install git make
⚠️ We need a recent version of Docker. Version 24.0.7 worked for us.
💡 Tip: A CI job reproduces the subsequent steps in a tutorial:
Create the base directories and clone the code:
mkdir -p opencca/snapshot && cd opencca
# Use --depth=10 to reduce git history and speed up clone
repo init -u https://github.com/opencca/opencca-manifest.git \
-b opencca/systex25 \
-m systex25.xml
repo sync --all -j5 --fetch-submodules
We provide a development container (registry) to cross-compile all artifacts. Pull and run it:
cd opencca-build/docker
make pull
make start
make enter # Enter the container
Build all components (inside container)
cd opencca-build/scripts/ && build_all.sh
💡 Tip: Read
build_all.sh
for instructions how to build the individual firmware components.
Upon build completion, you find all build artifacts in /opencca/snapshot.
What's next is to flash the firmware on to the hardware.