-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (48 loc) · 1.27 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:16.04
#Install riscv-tools dependencies
RUN apt-get update && apt-get install -y \
autoconf \
automake \
autotools-dev \
bc \
bison \
build-essential \
curl \
device-tree-compiler \
flex \
gawk \
gperf \
libmpc-dev \
libmpfr-dev \
libgmp-dev \
libtool \
libusb-1.0-0-dev \
patchutils \
zlib1g-dev \
wget \
cpio \
python \
unzip \
texinfo \
pkg-config \
git \
vim
ENV MAKEFLAGS -j$(nproc)
ENV RISCV /sec/riscv
ENV PATH $RISCV/bin:$PATH
RUN mkdir -p /sec
WORKDIR /sec
RUN git clone https://austin_d_harris@bitbucket.org/utspark/rocket-chip-sec.git rocket-chip && \
cd rocket-chip && git checkout sec && git submodule update --init --recursive
RUN mkdir -p $RISCV
RUN cd rocket-chip && git clone https://austin_d_harris@bitbucket.org/utspark/rocc-template-sec.git rocc-template && \
cd rocc-template && git checkout rsa && ./install-symlinks
RUN cd rocket-chip/riscv-tools/riscv-isa-sim && autoreconf
RUN git clone https://austin_d_harris@bitbucket.org/utspark/freedom-u-sdk-sec.git freedom-u-sdk && \
cd freedom-u-sdk && git checkout sec && git submodule update --init --recursive
WORKDIR /sec/rocket-chip/riscv-tools
RUN ./build.sh
RUN cd riscv-gnu-toolchain/build && make linux
WORKDIR /sec/freedom-u-sdk
RUN make
RUN make bbl