Based on the Miyoo Mini Union toolchain Docker image. The toolchain and sysroot files used here are originally here.
With Docker installed and running, make shell
builds the toolchain and drops into a shell inside the container. The container's ~/workspace
is bound to ./workspace
by default. The CROSS_COMPILE
and PATH
env vars have been updated with the toolchain location.
After building the first time, make shell
will skip building and drop into the shell.
- On your host machine, clone repositories into
./workspace
and make changes as usual. - In the container shell, find the repository in
~/workspace
and build as usual.
Docker for Mac has a memory limit that can make the toolchain build fail. Follow these instructions to increase the memory limit.