Merge tag 'v9.0.0-rc3'
[qemu/ar7.git] / .gitlab-ci.d / opensbi / Dockerfile
blob5ccf4151f4a1fca9489b238a8778029e230efdb2
2 # Docker image to cross-compile OpenSBI firmware binaries
4 FROM ubuntu:18.04
6 MAINTAINER Bin Meng <bmeng.cn@gmail.com>
8 # Install packages required to build OpenSBI
9 RUN apt update \
10     && \
11     \
12     DEBIAN_FRONTEND=noninteractive \
13     apt install --assume-yes --no-install-recommends \
14         build-essential \
15         ca-certificates \
16         git \
17         make \
18         python3 \
19         wget \
20     && \
21     \
22     rm -rf /var/lib/apt/lists/*
24 # Manually install the kernel.org "Crosstool" based toolchains for gcc-8.3
25 RUN wget -O - \
26     https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.3.0/x86_64-gcc-8.3.0-nolibc-riscv32-linux.tar.xz \
27     | tar -C /opt -xJ
28 RUN wget -O - \
29     https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.3.0/x86_64-gcc-8.3.0-nolibc-riscv64-linux.tar.xz \
30     | tar -C /opt -xJ
32 # Export the toolchains to the system path
33 ENV PATH="/opt/gcc-8.3.0-nolibc/riscv32-linux/bin:${PATH}"
34 ENV PATH="/opt/gcc-8.3.0-nolibc/riscv64-linux/bin:${PATH}"