From: R Veera Kumar Date: Sat, 22 May 2021 12:10:00 +0000 (+0530) Subject: Added iverilog setup script. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dc00203911b839d542ce54d021a22d229e7952e;p=dev-env-setup.git Added iverilog setup script. --- diff --git a/iverilog-install b/iverilog-install new file mode 100755 index 0000000..0da8e4a --- /dev/null +++ b/iverilog-install @@ -0,0 +1,28 @@ +#!/bin/bash +if [ "$EUID" -ne 0 ] + then echo "Please run as root using 'sudo bash'" + exit +fi + +apt-get update -y +apt-get install -y git autoconf make g++ bison flex gperf libreadline6-dev + +# change into $SUDO_USER home directory +cd /home/$SUDO_USER +mkdir -p src/iverilog +cd src/iverilog + +git clone https://github.com/steveicarus/iverilog.git + +cd iverilog +git checkout v11_0 +sh autoconf.sh +./configure --prefix=/usr/local/iverilog +make -j$(nproc) +make check +make install + +cd /home/$SUDO_USER/src/iverilog +chown -R $SUDO_USER . +chgrp -R $SUDO_USER . +