Skip to content

Commit ec5d733

Browse files
committed
Add yosys.sh steps inside pipeline in Jenkinsfile
1 parent ccbdf09 commit ec5d733

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Jenkinsfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ pipeline {
1010
}
1111

1212
stage("Yosys synthesis"){
13-
environment {
14-
TOPLEVEL = "mor1kx"
15-
VERSION = "5.0-r3"
16-
}
17-
steps{
18-
sh 'docker run --rm -v $(pwd):/src -e "TOPLEVEL=$TOPLEVEL" -e "VERSION=$VERSION" librecores/librecores-ci-openrisc /yosys-scripts/yosys.sh'
13+
steps {
14+
sh 'docker run --rm -v $(pwd):/src -w /src librecores/librecores-ci:0.4.0 /bin/bash -c \
15+
"fusesoc library add mor1kx /src; \
16+
fusesoc run --target=synth mor1kx; \
17+
/test-scripts/extract-yosys-stats.py < build/mor1kx_*/synth-icestorm/yosys.log"'
1918
}
2019
}
2120

0 commit comments

Comments
 (0)