-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 829 Bytes
/
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
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y cmake build-essential ninja-build \
clang bison flex libreadline-dev gawk \
tcl-dev libffi-dev git graphviz xdot pkg-config \
libboost-system-dev libboost-filesystem-dev zlib1g-dev \
lsb-release software-properties-common gnupg wget
WORKDIR /
RUN wget https://apt.llvm.org/llvm.sh \
&& chmod +x llvm.sh \
&& ./llvm.sh 17 \
&& rm llvm.sh
RUN git clone https://github.com/YosysHQ/yosys
WORKDIR /yosys
RUN git checkout c7d7cfeaca6c79b871aca39c0878cf189390c497 \
&& make config-clang \
&& printf "ENABLE_LIBYOSYS := 1\n" >> Makefile.conf \
&& make -j$(nproc) \
&& make install
# a workaround for yosys' abc path problem
RUN ln -s "/yosys/yosys-abc" /usr/lib/llvm-17/bin/yosys-abc