-
Notifications
You must be signed in to change notification settings - Fork 73
/
Dockerfile
53 lines (47 loc) · 1.57 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM ubuntu:bionic
LABEL maintainer="Màrius Montón"
ENV SYSTEMC_VERSION 2.3.3
RUN apt-get update -q && apt-get install -qy gcc-riscv64-linux-gnu
RUN apt-get update -q && apt-get install -qy --no-install-recommends \
build-essential curl \
cmake \
git \
openssh-client \
wget \
g++-8 \
xterm \
libboost-all-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/src/riscv64 \
&& wget --no-check-certificate https://accellera.org/images/downloads/standards/systemc/systemc-$SYSTEMC_VERSION.tar.gz \
&& tar fzxC systemc-$SYSTEMC_VERSION.tar.gz /usr/src/riscv64 \
&& cd /usr/src/riscv64/systemc-$SYSTEMC_VERSION \
&& mkdir build \
&& cd build \
&& cmake .. -DCMAKE_CXX_STANDARD=17 \
&& make \
&& make install \
&& cd /
#RUN rm -r /root/.ssh
RUN mkdir -p /root/.ssh
RUN ssh-keyscan github.com > /root/.ssh/known_hosts
RUN git config --global http.sslBackend "openssl"
# Build Spdlog and RISC-V-TLM
RUN cd /usr/src/riscv64 \
&& chmod -R a+rw . \
&& git config --global http.sslVerify false \
&& git clone --recurse-submodules https://github.com/mariusmm/RISC-V-TLM.git \
&& cd RISC-V-TLM \
&& cd spdlog \
&& cmake -H. -B_builds -DCMAKE_BUILD_TYPE=Release \
&& cmake --build _builds --config Release \
&& cmake -H. -B_builds -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release \
&& cmake --build _builds --target install \
&& cd .. \
&& mkdir build \
&& cd build \
&& chmod a+rw . \
&& SPDLOG_HOME=$PWD/../spdlog/install cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make
WORKDIR /usr/src/riscv64