Building
Everything is built from the repository root with cargo xtask, the project's build tool (Rust, in
tools/xtask/). It skips steps whose inputs did not change; --force runs them all.
What you need
- A Linux PC (x86_64 or arm64) with Rust (stable) and
rustup target add aarch64-unknown-linux-musl. - About 30 GB of disk for build outputs. They live outside the repository, behind the link
work:ln -sfn /path/to/big/disk work. - Python 3 with Pillow (labels and wordmarks), Node.js only for these docs.
- The Alpine sysroot the device programs link against:
image/build-sysroot.sh(rootless, in a user namespace).
Build configuration
build.conf in the repository root (not tracked; it may hold secrets, never commit it):
BUILD_TYPE=release # or debug
DEVICE=athena # devices/<id>
GOOGLE_CLIENT_ID=… # optional: Google sign-in; empty compiles it out
GOOGLE_CLIENT_SECRET=…
TAUNUS_BUILD_CONF=<file> uses another file. Release builds allow one computer, over USB, with the passcode;
debug builds add SSH, a serial console and confirm-by-tap for new computers.
Commands
cargo xtask test [--all] # unit tests of changed crates (and their dependents), and tdt
cargo xtask ui # cross-build the device programs → work/stage
cargo xtask tdt # tdt for the PC (and ~/.local/bin/tdt), tdtd for the device
cargo xtask rootfs # test + tdt + ui + image → work/out/rootfs[-debug].img, then image checks
cargo xtask sync # copy programs and files onto the running device, restart what changed
cargo xtask deploy [--boot] # install the built image on the device over USB and reboot
cargo xtask status # what the device runs vs. the last local build
Always build with all cores (-j$(nproc)). There are no dry-run modes: verify with tests and real runs.
sync refuses when the device runs another build type than yours; switch build types with an image.
On the PC
Most programs also run on the PC, which is the fastest way to work on a screen:
cargo run --release -p taunus-gallery # every widget, both form factors
cargo run --release -p taunus-settings
TAUNUS_FORM_FACTOR=tv cargo run --release -p taunus-settings