diff --git a/pycde-build/Dockerfile b/pycde-build/Dockerfile index 869e5e5..c662c8c 100644 --- a/pycde-build/Dockerfile +++ b/pycde-build/Dockerfile @@ -1,5 +1,11 @@ FROM quay.io/pypa/manylinux2014_x86_64 -RUN yum install -y wget ninja-build +RUN yum install -y \ + wget ninja-build autoconf bc bison flex flex-devel perl \ + python3 python3-devel + +COPY get-verilator.sh /tmp +RUN cd /tmp && bash get-verilator.sh + COPY get-capnp.sh /tmp RUN cd /tmp && bash get-capnp.sh diff --git a/pycde-build/get-verilator.sh b/pycde-build/get-verilator.sh new file mode 100755 index 0000000..8b11761 --- /dev/null +++ b/pycde-build/get-verilator.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +##===- utils/get-verilator.sh - Install Verilator ------------*- Script -*-===## +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +##===----------------------------------------------------------------------===## + +set -e + +mkdir -p "$(dirname "$BASH_SOURCE[0]")/../ext" +EXT_DIR=$(cd "$(dirname "$BASH_SOURCE[0]")/../ext" && pwd) +VERILATOR_VER=4.110 + +echo $EXT_DIR +cd $EXT_DIR + +wget https://github.com/verilator/verilator/archive/v$VERILATOR_VER.tar.gz +tar -zxf v$VERILATOR_VER.tar.gz +cd verilator-$VERILATOR_VER +autoconf +./configure +make -j$(nproc) +make install +cd .. +rm -r verilator-$VERILATOR_VER v$VERILATOR_VER.tar.gz