Skip to content

Commit

Permalink
Merge #168
Browse files Browse the repository at this point in the history
168: riotbuild: add qemu-system-arm r=kaspar030 a=kaspar030

This PR adds QEMU with it's full-system ARM emulator.

At least the microbit board can be emulated to a large degree with this.

A second commit adds a basic test run of `tests/fmt_print` for microbit, using qemu.

Co-authored-by: Kaspar Schleiser <[email protected]>
  • Loading branch information
bors[bot] and kaspar030 authored Dec 22, 2021
2 parents d3f232b + e7cb2e6 commit 078914f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ jobs:
DOCKER_IMAGE: ${{ env.DOCKER_REGISTRY }}/riotbuild:latest
BOARDS: "arduino-uno esp32-wroom-32 hifive1b msb-430h native pic32-wifire samr21-xpro"

- name: GNU microbit qemu test
run: >
docker run --rm -t -v $(pwd)/RIOT:/data/riotbuild
${{ env.DOCKER_REGISTRY }}/riotbuild:latest
make -Ctests/fmt_print all test
env:
BOARD: "microbit"
EMULATE: 1

- name: LLVM build test
run: |
make -CRIOT/examples/hello-world buildtest
Expand Down
3 changes: 3 additions & 0 deletions riotbuild/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ COPY --from=chrysn/c2rust-built:for-riot /c2rust_0.0_amd64.deb /pkgs
# - MSP430 development (about 120 MB installed)
# - AVR development (about 110 MB installed)
# - LLVM/Clang build environment (about 125 MB installed)
# - QEMU
# All apt files will be deleted afterwards to reduce the size of the container image.
# The OS must not be updated by apt. Docker image should be build against the latest
# updated base OS image. This can be forced with `--pull` flag.
Expand Down Expand Up @@ -79,7 +80,9 @@ RUN \
python3-setuptools \
python3-wheel \
p7zip \
qemu-system-arm \
rsync \
socat \
ssh-client \
subversion \
unzip \
Expand Down

0 comments on commit 078914f

Please sign in to comment.