Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions build_openroad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -374,17 +374,6 @@ __local_build()
export LIBRARY_PATH="${_joined_paths}${LIBRARY_PATH:+:$LIBRARY_PATH}"
echo "[INFO] General LIBRARY_PATH=$LIBRARY_PATH"
fi
if [[ -f "/opt/rh/rh-python38/enable" ]]; then
set +u
source /opt/rh/rh-python38/enable
set -u
fi
if [[ -f "/opt/rh/devtoolset-8/enable" ]]; then
# the scl script has unbound variables
set +u
source /opt/rh/devtoolset-8/enable
set -u
fi
# EL8: the default GCC 8 is too old for kepler-formal.
if [[ -f "/opt/rh/gcc-toolset-13/enable" ]]; then
set +u
Expand Down
2 changes: 1 addition & 1 deletion docs/user/BuildLocally.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

The `setup.sh` script installs all of the dependencies, including OpenROAD dependencies, if they are not already installed.

Supported configurations are: Ubuntu 26.04, Ubuntu 24.04, RHEL 8 and RockyLinux 9.
Supported configurations are: Ubuntu 26.04 and Ubuntu 24.04.

``` shell
git clone --recursive https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts
Expand Down
10 changes: 1 addition & 9 deletions docs/user/BuildWithDocker.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ util/docker_shell make
To use the GUI feature you will need to start the docker with the
following command,

For Ubuntu/Debian OS users:
For Ubuntu users:

```
docker run --rm -it \
Expand All @@ -119,14 +119,6 @@ docker run --rm -it \
openroad/orfs
```

Running GUI with Docker on Mac OS X users, refer [here](https://cntnr.io/running-guis-with-docker-on-mac-os-x-a14df6a76efc).

Then use:

```
docker run --rm -it -e DISPLAY=<IP_LIKE_FROM_TUTORIAL>:0 --network host --privileged <IMAGE_NAME>
```

Alternatively, you may also use the `docker_shell` utility for GUI as follows.
It is important that you are in the `flow` directory.

Expand Down
2 changes: 1 addition & 1 deletion docs/user/BuildWithWSL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Windows Subsystem for Linux, or WSL for short is a way for you to mount a Linux-based OS onto your Windows machine, allowing you to build OpenROAD-flow-scripts both locally and via Docker.

## Install WSL
Instructions to install WSL can be found [here](https://learn.microsoft.com/en-us/windows/wsl/install). You may use any kernel supported, such as: Ubuntu 26.04, Ubuntu 24.04, RHEL 8, RockyLinux 9.
Instructions to install WSL can be found [here](https://learn.microsoft.com/en-us/windows/wsl/install). Use a supported Ubuntu release: Ubuntu 26.04 or Ubuntu 24.04.

We recommend that users follow the Docker build by continuing onto the guide below. However, if you wish to install locally, you may follow the build locally instructions [here](./BuildLocally.md).

Expand Down
56 changes: 6 additions & 50 deletions etc/DependencyInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ _installORDependencies() {
}

_installPipCommon() {
if [[ -f /opt/rh/rh-python38/enable ]]; then
set +u
source /opt/rh/rh-python38/enable
set -u
fi
local lockfile piplock
lockfile="${_script_dir}/requirements-common_lock.txt"
piplock="${_script_dir}/requirements-pip_lock.txt"
Expand Down Expand Up @@ -188,43 +183,12 @@ _installPipSystem() {
apt-get -y install python3-pandas python3-numpy python3-click python3-yaml python3-yamlfix
}

# Enterprise Linux 7 cleanup
_install_EL7_CleanUp() {
yum clean -y all
}

# Enterprise Linux 7 package installation (EL7 = RHEL 7 or CentOS 7)
_install_EL7_Packages() {
yum -y update
yum -y install \
time \
readline \
ruby \
ruby-devel \
tcl-tclreadline \
tcl-tclreadline-devel

if ! [ -x "$(command -v klayout)" ]; then
yum -y install https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion}-0.x86_64.rpm
else
currentVersion=$(klayout -v | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')
if _versionCompare $currentVersion -ge $klayoutVersion; then
echo "KLayout version greater than or equal to ${klayoutVersion}"
else
echo "KLayout version less than ${klayoutVersion}"
sudo yum remove -y klayout
yum -y install https://www.klayout.org/downloads/CentOS_7/klayout-${klayoutVersion}-0.x86_64.rpm
fi
fi
}


# Enterprise Linux 8/9 cleanup
_install_EL8_EL9_CleanUp() {
dnf clean -y all
}

# Enterprise Linux 8/9 package installation (EL8/EL9 = RHEL, Rocky Linux, AlmaLinux, or CentOS 8 as no CentOS 9 exists)
# Enterprise Linux 8/9 package installation (EL8/EL9 = RHEL, Rocky Linux, or AlmaLinux)
_install_EL8_EL9_Packages() {
# Re-detect EL version for appropriate KLayout package
if [[ -f /etc/os-release ]]; then
Expand Down Expand Up @@ -659,7 +623,7 @@ case "${platform}" in
esac

case "${os}" in
"CentOS Linux" | "Red Hat Enterprise Linux"* | "AlmaLinux" | "Rocky Linux")
"Red Hat Enterprise Linux"* | "AlmaLinux" | "Rocky Linux")
# Enterprise Linux support - dispatch based on specific version
if [[ ${CI} == "yes" ]]; then
echo "WARNING: Installing CI dependencies is only supported on Ubuntu 24.04 and 26.04" >&2
Expand All @@ -673,20 +637,12 @@ case "${os}" in
exit 1
fi

# First install OpenROAD base
_installORDependencies

# Determine between EL7 vs EL8/9, since yum vs dnf should be used, and different Klayout builds exist
# Only EL8 and EL9 are supported; other versions stop before any install.
case "${elVersion}" in
"7")
# EL7 = RHEL 7 or CentOS 7
if [[ "${option}" == "base" || "${option}" == "all" ]]; then
_install_EL7_Packages
_install_EL7_CleanUp
fi
;;
"8"|"9")
# EL8/EL9 = RHEL, Rocky Linux, AlmaLinux, or CentOS 8+
# EL8/EL9 = RHEL, Rocky Linux, or AlmaLinux
# First install OpenROAD base
_installORDependencies
if [[ "${option}" == "base" || "${option}" == "all" ]]; then
_install_EL8_EL9_Packages
_install_EL8_EL9_CleanUp
Expand Down