changed lint script to use absolute path for verilator because cron jobs stink at using paths

This commit is contained in:
bbracker 2021-05-18 14:33:22 -04:00
parent 9464c9022d
commit c495fc71f1

View File

@ -1,11 +1,12 @@
#!/bin/bash
# check for warnings in Verilog code
# The verilator lint tool is faster and better than Modelsim so it is best to run this first.
verilator="/usr/local/bin/verilator"
basepath=$(dirname $0)
for config in rv64ic rv32ic; do
echo "$config linting..."
if !(verilator --lint-only "$@" --top-module wallypipelinedsoc "-I$basepath/config/$config" $basepath/src/*/*.sv); then
if !($verilator --lint-only "$@" --top-module wallypipelinedsoc "-I$basepath/config/$config" $basepath/src/*/*.sv); then
echo "Exiting after $config lint due to errors or warnings"
exit 1
fi