From 2e3b77da8e5c4287c131b4079b6721f46f3c41e3 Mon Sep 17 00:00:00 2001 From: Piet Date: Sun, 20 Feb 2022 23:43:34 +0100 Subject: [PATCH] ci: Install Rust via RUN. --- tools/ci/docker/linux/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/ci/docker/linux/Dockerfile b/tools/ci/docker/linux/Dockerfile index 962b54240f..2157937943 100644 --- a/tools/ci/docker/linux/Dockerfile +++ b/tools/ci/docker/linux/Dockerfile @@ -191,6 +191,12 @@ RUN cd renesas-tools/source/newlib && \ RUN cd /tools/renesas-tools/build/gcc && \ make && make install +# Install Rust and targets supported from NuttX +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \ + $HOME/.cargo/bin/rustup target add thumbv6m-none-eabi && \ + $HOME/.cargo/bin/rustup target add thumbv7m-none-eabi +ENV PATH="$HOME/.cargo/bin:$PATH" + ############################################################################### # Final Docker image used for running CI system. This includes all toolchains # supported by the CI system. @@ -227,7 +233,6 @@ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q python3 \ python3-pip \ python-is-python3 \ - rustc \ u-boot-tools \ unzip \ wget \