Skip to content

Commit 4db2218

Browse files
committed
update readme
1 parent 9f7bb52 commit 4db2218

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
This docker container has been created to allow us to easily crosscompile our c++ tools. The idea comes from [multiarch/crossbuild](https://github.com/multiarch/crossbuild), but that container unfortunately is outdated and the apt sources are no longer available.
1010

1111
## Starting Image
12-
The starting image is [ubuntu:latest](https://hub.docker.com/_/ubuntu) (The ubuntu:latest tag points to the "latest LTS", since that's the version recommended for general use.) at the time of writing latest points to Ubuntu 22.04 jammy.
13-
14-
The starting image is only marginally important, since internally we use manually installed toolchains.
12+
The starting image is [ubuntu:22.04](https://hub.docker.com/_/ubuntu). The starting image is only marginally important, since internally we use manually installed toolchains.
1513

1614
## The Toolchains
1715
The toolchains are download from http://downloads.arduino.cc/tools/internal/toolchains.tar.gz .
@@ -40,4 +38,11 @@ To reduce the overall dimension of the docker image we used the [multi-stage bu
4038
Usefull commands you can use:
4139
- `docker build -t ghcr.io/arduino/crossbuild:<version> .` to build the container
4240
- `docker push ghcr.io/arduino/crossbuild:<version>` to push the image to [github remote registry](https://docs.github.com/en/packages/guides/container-guides-for-github-packages)
43-
- `docker run -it --name crossbuild -v $PWD:/workdir ghcr.io/arduino/crossbuild:<version>` to get a shell inside the container and use the toolchains available inside (just like the CI does).
41+
- `docker run -it --rm -e CROSS_COMPILE=<tool-chain> -v $PWD:/workdir ghcr.io/arduino/crossbuild:latest` to get a shell inside the container with the selected toolchain.
42+
The image supports the following toolchain:
43+
44+
- x86_64-ubuntu16.04-linux-gnu
45+
- arm-linux-gnueabihf
46+
- aarch64-linux-gnu
47+
- i686-ubuntu16.04-linux-gnu
48+
- x86_64-apple-darwin13

0 commit comments

Comments
 (0)