Skip to content

Commit 16b87d0

Browse files
authored
Prepare for the OpenROAD src/ to openroad/ rename (#4842)
* docker: skip OpenSTA licenses in both OpenROAD layouts OpenROAD is renaming its top-level src/ directory to openroad/, so the OpenSTA submodule moves to tools/OpenROAD/openroad/sta. The old filter would then copy the OpenSTA license files into the image, and they are covered by a separate commercial license agreement. The filter accepts both layouts, so it works before and after ORFS bumps OpenROAD past the rename. Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com> * docs: fetch the utl README from openroad/ or src/ OpenROAD renames its top-level src/ directory to openroad/. The docs build fetches utl/README.md from OpenROAD master and fails on an HTTP error, so every Read the Docs build would fail after the rename lands on master. The fetch now tries openroad/ first and falls back to src/. Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com> --------- Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
1 parent 43be7b7 commit 16b87d0

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

‎docker/Dockerfile.builder‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ if [ ! -x tools/install/OpenROAD/bin/openroad ]; then
8787
fi
8888
EOF
8989

90-
# tools/OpenROAD/src/sta is excluded because it is covered by a separate
91-
# commercial license agreement.
90+
# The OpenSTA submodule (tools/OpenROAD/openroad/sta, or src/sta in an
91+
# OpenROAD commit from before the rename) is excluded because it is covered
92+
# by a separate commercial license agreement.
9293
RUN find /OpenROAD-flow-scripts/tools/OpenROAD \( -name "*LICENSE*" -o -name "*LICENSES*" \) \
93-
| grep -v '/OpenROAD/src/sta/' \
94+
| grep -vE '/OpenROAD/(openroad|src)/sta/' \
9495
| while IFS= read -r f; do \
9596
rel="${f#/OpenROAD-flow-scripts/tools/}"; \
9697
mkdir -p "/OpenROAD-flow-scripts/tools/install/licenses/$(dirname "$rel")"; \

‎docs/conf.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ def setup(app):
228228

229229
f.write(updated_content)
230230

231-
# Get Manpage file
232-
url = "https://raw.githubusercontent.com/The-OpenROAD-Project/OpenROAD/master/src/utl/README.md"
233-
get_file_from_url(url, "Manpage.md")
231+
# Get Manpage file. OpenROAD renames its src/ directory to openroad/;
232+
# the src/ path serves OpenROAD master from before the rename.
233+
base = "https://raw.githubusercontent.com/The-OpenROAD-Project/OpenROAD/master"
234+
try:
235+
get_file_from_url(f"{base}/openroad/utl/README.md", "Manpage.md")
236+
except requests.HTTPError:
237+
get_file_from_url(f"{base}/src/utl/README.md", "Manpage.md")

0 commit comments

Comments
 (0)