-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
47 lines (45 loc) · 1.4 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
FROM alpine:3.6
RUN apk --no-cache add --virtual runtime-dependencies \
libgcc \
libstdc++ \
libffi \
libftdi1 \
readline \
graphviz \
python3 \
perl \
tcl \
make \
bash &&\
apk --no-cache add --virtual build-dependencies \
git \
mercurial \
clang \
build-base \
autoconf \
bison \
flex \
flex-dev \
gawk \
tcl-dev \
python \
libffi-dev \
libftdi1-dev \
readline-dev \
gperf &&\
git clone --depth 1 https://github.com/cliffordwolf/icestorm.git /tmp/icestorm && cd /tmp/icestorm &&\
make && make install &&\
git clone --depth 1 https://github.com/cseed/arachne-pnr.git /tmp/arachne-pnr && cd /tmp/arachne-pnr &&\
make && make install &&\
git clone --depth 1 https://github.com/cliffordwolf/yosys.git /tmp/yosys && cd /tmp/yosys &&\
make yosys-abc && make && make install &&\
git clone --depth 1 https://github.com/steveicarus/iverilog.git /tmp/iverilog && cd /tmp/iverilog &&\
autoconf && ./configure && make && make install &&\
git clone --depth 1 https://github.com/ddm/verilator.git /tmp/verilator && cd /tmp/verilator &&\
autoconf && ./configure && make && make install &&\
apk del --purge build-dependencies &&\
rm -rf /var/cache/apk/* &&\
rm -rf /tmp/* &&\
adduser -D -u 1000 user
USER user
WORKDIR /workdir