Skip to content

Commit 9ae08e9

Browse files
authored
Merge pull request #3527 from The-OpenROAD-Project-staging/build-skip-or
Add -s/--skip_openroad to build_openroad.sh
2 parents 832999c + c7d2721 commit 9ae08e9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

build_openroad.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ Options:
4949
-l, --latest Use the head of branch --or_branch or 'master'
5050
by default for tools/OpenROAD.
5151
52+
-s, --skip_openroad Skip building and all git operations on OpenROAD.
53+
5254
--or_branch BRANCH_NAME Use the head of branch BRANCH for tools/OpenROAD.
5355
5456
--or_repo REPO_URL Use a fork at REPO-URL (https/ssh) for tools/OpenROAD.
@@ -107,6 +109,9 @@ while (( "$#" )); do
107109
-l|--latest)
108110
USE_OPENROAD_APP_LATEST=1
109111
;;
112+
-s|--skip_openroad)
113+
SKIP_OPENROAD=1
114+
;;
110115
--or_branch)
111116
OPENROAD_APP_BRANCH="$2"
112117
shift
@@ -237,9 +242,11 @@ __local_build()
237242
set -u
238243
fi
239244

240-
echo "[INFO FLW-0018] Compiling OpenROAD."
241-
eval ${NICE} ./tools/OpenROAD/etc/Build.sh -dir="$DIR/tools/OpenROAD/build" -threads=${PROC} -cmake=\'${OPENROAD_APP_ARGS}\'
242-
${NICE} cmake --build tools/OpenROAD/build --target install -j "${PROC}"
245+
if [ -z "${SKIP_OPENROAD+x}" ]; then
246+
echo "[INFO FLW-0018] Compiling OpenROAD."
247+
eval ${NICE} ./tools/OpenROAD/etc/Build.sh -dir="$DIR/tools/OpenROAD/build" -threads=${PROC} -cmake=\'${OPENROAD_APP_ARGS}\'
248+
${NICE} cmake --build tools/OpenROAD/build --target install -j "${PROC}"
249+
fi
243250

244251
YOSYS_ABC_PATH=tools/yosys/abc
245252
if [[ -d "${YOSYS_ABC_PATH}/.git" ]]; then
@@ -303,7 +310,7 @@ __common_setup()
303310
__change_openroad_app_remote
304311
fi
305312

306-
if [ ! -z "${USE_OPENROAD_APP_LATEST+x}" ] || [ "${OPENROAD_APP_BRANCH}" != "master" ]; then
313+
if [ -z "${SKIP_OPENROAD+x}" ] && ( [ ! -z "${USE_OPENROAD_APP_LATEST+x}" ] || [ "${OPENROAD_APP_BRANCH}" != "master" ] ) ; then
307314
echo -n "[INFO FLW-0004] Updating OpenROAD app to the HEAD"
308315
echo " of ${OPENROAD_APP_REMOTE}/${OPENROAD_APP_BRANCH}."
309316
__update_openroad_app_latest

0 commit comments

Comments
 (0)