This project uses a streamlined docker based workflow, making it portable to any environment with docker and it requires just one command to build the whole project. Optionally, you can use the provided cross-compilation tools with llvm and clang.
- Deno
- Rust
- Docker (If using Docker for compilation)
- LLVM (If doing native cross-compilation)
You just need to have deno in your path and run ./tools/build.ts in a terminal.
After this completes you can move the contents of ./build/PAYLOAD to a fat32 formatted sd card and insert into the miyoo mini (plus).
By default, the build script uses Docker. To use the native cross-compilation toolchain, you must first run ./tools/setup.ts, then add -N or --native to ./tools/build.ts.
Make sure you have LLVM's bin directory in your path or use the LLVM_BIN environment variable when running ./tools/setup.ts.
Ex: ./tools/build.ts -N
To build for release, add --release to the build command.
Ex: ./tools/build.ts --release
Any extra arguments for cargo, if it is used by the build method, can be passed after --.
Ex: ./tools/build.ts --release -- -Z build-std