-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile
32 lines (29 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:20.04 as base
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y
RUN apt-get install -y \
build-essential \
wget \
curl \
python3-pip \
python3-dev \
cmake \
make \
build-essential --fix-missing \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& rm -rf /var/lib/apt/lists/*
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
ENV PATH=/root/.cargo/bin:$PATH
RUN rustup default nightly-2024-01-31
RUN rustup target add thumbv7em-none-eabihf --toolchain nightly-2024-01-31
RUN cargo install cbindgen bindgen-cli
RUN pip3 install PyYaml
RUN pip3 install pillow
FROM base as pillar
RUN wget -q https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 -O gcc-arm-none-eabi.tar.bz2
RUN mkdir gcc-arm-none-eabi && tar xjf gcc-arm-none-eabi.tar.bz2 -C gcc-arm-none-eabi --strip-components 1
RUN rm gcc-arm-none-eabi.tar.bz2
ENV PATH="/gcc-arm-none-eabi/bin:${PATH}"
WORKDIR /keystone3-firmware
RUN rm -rf build