diff --git a/tools/ci/docker/linux/Dockerfile b/tools/ci/docker/linux/Dockerfile index 78b43ca5c0..845f9bc18b 100644 --- a/tools/ci/docker/linux/Dockerfile +++ b/tools/ci/docker/linux/Dockerfile @@ -66,7 +66,8 @@ ENV RUSTUP_HOME=$RUST_HOME/rustup RUN mkdir -p $CARGO_HOME \ && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ && $CARGO_HOME/bin/rustup target add thumbv6m-none-eabi \ - && $CARGO_HOME/bin/rustup target add thumbv7m-none-eabi + && $CARGO_HOME/bin/rustup target add thumbv7m-none-eabi \ + && $CARGO_HOME/bin/rustup target add riscv64gc-unknown-none-elf RUN mkdir /tools/gn -p \ && cd /tools/gn \ diff --git a/tools/ci/platforms/msys2.sh b/tools/ci/platforms/msys2.sh index f5230e778c..687b81cff4 100755 --- a/tools/ci/platforms/msys2.sh +++ b/tools/ci/platforms/msys2.sh @@ -181,6 +181,7 @@ rust() { # Install targets supported from NuttX "$CARGO_HOME"/bin/rustup target add thumbv6m-none-eabi "$CARGO_HOME"/bin/rustup target add thumbv7m-none-eabi + "$CARGO_HOME"/bin/rustup target add riscv64gc-unknown-none-elf rm rustup-init.exe fi command rustc --version diff --git a/tools/ci/platforms/ubuntu.sh b/tools/ci/platforms/ubuntu.sh index e545b4f5ab..fdfaaa9bf2 100755 --- a/tools/ci/platforms/ubuntu.sh +++ b/tools/ci/platforms/ubuntu.sh @@ -230,6 +230,7 @@ rust() { # Install targets supported from NuttX rustup target add thumbv6m-none-eabi rustup target add thumbv7m-none-eabi + rustup target add riscv64gc-unknown-none-elf fi command rustc --version