File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ _versionCompare() {
2020}
2121
2222_installORDependencies () {
23- ./tools/OpenROAD/etc/DependencyInstaller.sh ${OR_INSTALLER_ARGS}
23+ if [[ ${YOSYS_VER} == " " ]]; then
24+ YOSYS_VER=$( grep ' yosys_ver =' tools/yosys/docs/source/conf.py | awk -F' "' ' {print $2}' )
25+ fi
26+ ./tools/OpenROAD/etc/DependencyInstaller.sh ${OR_INSTALLER_ARGS} -yosys-ver=" ${YOSYS_VER} "
2427}
2528
2629_installPipCommon () {
@@ -306,6 +309,10 @@ Usage: $0 [-all|-base|-common] [-<ARGS>]
306309 # sudo or with root access.
307310 $0 -ci
308311 # Installs CI tools
312+ $0 -yosys-ver=VERSION
313+ # Installs specified version of Yosys.
314+ # By default, the Yosys version is
315+ # obtained from tools/yosys/docs/source/conf.py
309316 $0 -constant-build-dir
310317 # Use constant build directory, instead of
311318 # random one.
315322
316323# default args
317324OR_INSTALLER_ARGS=" -eqy"
325+ YOSYS_VER=" "
318326# default prefix
319327PREFIX=" "
320328# default option
@@ -355,6 +363,9 @@ while [ "$#" -gt 0 ]; do
355363 CI=" yes"
356364 OR_INSTALLER_ARGS=" ${OR_INSTALLER_ARGS} -save-deps-prefixes=/etc/openroad_deps_prefixes.txt"
357365 ;;
366+ -yosys-ver=* )
367+ YOSYS_VER=${1#* =}
368+ ;;
358369 -prefix=* )
359370 OR_INSTALLER_ARGS=" ${OR_INSTALLER_ARGS} $1 "
360371 PREFIX=${1#* =}
Original file line number Diff line number Diff line change @@ -73,7 +73,12 @@ _setup() {
7373 fromImage=" ${FROM_IMAGE_OVERRIDE:- $osBaseImage } "
7474 cp tools/OpenROAD/etc/DependencyInstaller.sh etc/InstallerOpenROAD.sh
7575 context=" etc"
76- buildArgs=" --build-arg options=${options} ${noConstantBuildDir} "
76+ local yosys_ver
77+ yosys_ver=$( grep ' yosys_ver =' tools/yosys/docs/source/conf.py | awk -F' "' ' {print $2}' )
78+ options+=" -yosys-ver=${yosys_ver} "
79+ buildArgs=" --build-arg options='"
80+ buildArgs+=" ${options} '"
81+ buildArgs+=" ${noConstantBuildDir} "
7782 ;;
7883 * )
7984 echo " Target ${target} not found" >&2
You can’t perform that action at this time.
0 commit comments