mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-24 14:46:53 +01:00
23 lines
358 B
Bash
23 lines
358 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
pushd $(dirname $0) > /dev/null
|
||
|
|
||
|
docker run \
|
||
|
-it \
|
||
|
--rm \
|
||
|
--user $(id -u):$(id -g) \
|
||
|
-v "$(pwd)":/work \
|
||
|
-v "$(pwd)/../rtl":/rtl \
|
||
|
-e CCACHE_DIR=/tmp/ccache \
|
||
|
--entrypoint /bin/bash \
|
||
|
verilator/verilator:latest \
|
||
|
-c "make -j"
|
||
|
|
||
|
BUILD_ERROR=$?
|
||
|
|
||
|
popd > /dev/null
|
||
|
|
||
|
if [ $BUILD_ERROR -ne 0 ]; then
|
||
|
exit -1
|
||
|
fi
|