mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Build arduino code (for AVR) and allow test in qemu
This commit is contained in:
parent
7c9d56ee69
commit
6b2063c6ab
4 changed files with 24 additions and 8 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -3,6 +3,11 @@ ENV LANG C.UTF-8
|
|||
ENV LC_ALL C.UTF-8
|
||||
RUN apt-get -y update
|
||||
|
||||
# tzdata
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ENV TZ=Etc/UTC
|
||||
RUN apt-get install -y tzdata
|
||||
|
||||
# for unity test
|
||||
RUN apt-get install -y ruby xxd
|
||||
|
||||
|
|
@ -13,8 +18,8 @@ RUN apt-get install -y gcc-riscv64-unknown-elf build-essential
|
|||
RUN apt-get install -y curl
|
||||
RUN curl https://raw.githubusercontent.com/tristanisham/zvm/master/install.sh | bash
|
||||
ENV ZVM_INSTALL /root/.zvm/self
|
||||
ENV PATH="$PATH:/root/.zvm/bin:/root/.zvm/self"
|
||||
ENV export PATH="$/.zvm/bin"
|
||||
ENV PATH "$PATH:/root/.zvm/bin:/root/.zvm/self"
|
||||
ENV PATH "$PATH:/root/.zvm/bin"
|
||||
RUN zvm i 0.15.2
|
||||
|
||||
# rust
|
||||
|
|
@ -22,3 +27,8 @@ RUN apt-get install -y rustup libclang1
|
|||
RUN rustup default stable
|
||||
RUN rustup target add riscv32im-unknown-none-elf
|
||||
RUN apt-get install -y libclang1
|
||||
|
||||
# arduino
|
||||
RUN curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
|
||||
RUN arduino-cli core install arduino:avr
|
||||
RUN apt-get install -y qemu-system-misc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue