mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +00:00
0abf88823f
* [docker] Remove versions from Docker files
There is no dependency on an actual version, it was only there to
silence the linter. Instead the linter is now set to not warn about
it.
Signed-off-by: Stefan Wallentowitz <stefan.wallentowitz@hm.edu>
* [docker] Update to Ubuntu 20.04
Update to new Ubuntu release:
- Only GCC 9.3 available. Also add clang (10.0) now.
- SystemC is now a package 🎉
Signed-off-by: Stefan Wallentowitz <stefan.wallentowitz@hm.edu>
26 lines
649 B
Bash
Executable File
26 lines
649 B
Bash
Executable File
#!/bin/bash -e
|
|
# DESCRIPTION: Build Verilator (inside container)
|
|
#
|
|
# Copyright 2020 by Stefan Wallentowitz. This program is free software; you
|
|
# can redistribute it and/or modify it under the terms of either the GNU
|
|
# Lesser General Public License Version 3 or the Perl Artistic License
|
|
# Version 2.0.
|
|
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
|
|
|
: "${REPO:=https://github.com/verilator/verilator}"
|
|
: "${REV:=master}"
|
|
: "${CC:=gcc}"
|
|
: "${CXX:=g++}"
|
|
|
|
SRCS=$PWD/verilator
|
|
|
|
git clone "$REPO" "$SRCS"
|
|
cd "$SRCS"
|
|
git checkout "$REV"
|
|
autoconf
|
|
./configure --enable-longtests
|
|
make -j $(nproc)
|
|
if [ "${1:-''}" == "test" ]; then
|
|
make test
|
|
fi
|