Skip to content

Commit

Permalink
[#63235] docker: Dockerfile.builder: Add verilator installation
Browse files Browse the repository at this point in the history
Signed-off-by: Illia Vysochyn <[email protected]>
  • Loading branch information
ivysochyn committed Aug 13, 2024
1 parent 2b8aca6 commit 2906d24
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 9 additions & 0 deletions docker/Dockerfile.builder
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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 \
Expand Down
10 changes: 8 additions & 2 deletions etc/DependencyInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,24 @@ _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 \
qtmultimedia5-dev \
qttools5-dev \
ruby \
ruby-dev \
time
time \
zlib1g \
zlib1g-dev

# install KLayout
if _versionCompare $1 -ge 23.04; then
Expand Down

0 comments on commit 2906d24

Please sign in to comment.