From 2906d24219ca98d1bf3cf1ffa649787ca0011979 Mon Sep 17 00:00:00 2001 From: Illia Vysochyn Date: Tue, 13 Aug 2024 13:13:22 +0200 Subject: [PATCH] [#63235] docker: Dockerfile.builder: Add verilator installation Signed-off-by: Illia Vysochyn --- docker/Dockerfile.builder | 9 +++++++++ etc/DependencyInstaller.sh | 10 ++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile.builder b/docker/Dockerfile.builder index 372739d305..499a470ce6 100644 --- a/docker/Dockerfile.builder +++ b/docker/Dockerfile.builder @@ -21,6 +21,13 @@ ARG numThreads=$(nproc) RUN echo "" > tools/yosys/abc/.gitcommit && \ ./build_openroad.sh --no_init --local --threads ${numThreads} +FROM $fromImage AS verilator + +COPY --link tools/verilator /OpenROAD-flow-scripts/tools/verilator + +WORKDIR /OpenROAD-flow-scripts/tools/verilator +RUN autoconf && ./configure && make -j$(nproc) && make install + FROM orfs-base # The order for copying the directories is based on the frequency of changes (ascending order), @@ -35,6 +42,8 @@ COPY --link flow/scripts flow/scripts COPY --link flow/designs flow/designs COPY --link --from=orfs-builder-base /OpenROAD-flow-scripts/tools/install tools/install +COPY --link --from=verilator /usr/local/bin/verilator /usr/local/bin/verilator +COPY --link --from=verilator /usr/local/share/verilator /usr/local/share/verilator COPY --link \ --exclude=.git* --exclude=tools/ --exclude=docs/ --exclude=docker/ \ --exclude=flow/designs --exclude=flow/platforms --exclude=flow/scripts \ diff --git a/etc/DependencyInstaller.sh b/etc/DependencyInstaller.sh index f77e7d692b..a1780eb5a5 100755 --- a/etc/DependencyInstaller.sh +++ b/etc/DependencyInstaller.sh @@ -72,10 +72,14 @@ _installUbuntuPackages() { apt-get -y update apt-get -y install --no-install-recommends \ curl \ + help2man \ + libfl-dev \ + libfl2 \ + libgoogle-perftools-dev \ libqt5multimediawidgets5 \ + libqt5opengl5 \ libqt5svg5-dev \ libqt5xmlpatterns5-dev \ - libqt5opengl5 \ libz-dev \ python3-pip \ python3-venv \ @@ -83,7 +87,9 @@ _installUbuntuPackages() { qttools5-dev \ ruby \ ruby-dev \ - time + time \ + zlib1g \ + zlib1g-dev # install KLayout if _versionCompare $1 -ge 23.04; then