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
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
/tools/AutoTuner/docker-compose.yml @The-OpenROAD-Project/openroad-devops

# Bazel build support.
/bazel/ @The-OpenROAD-Project/openroad-devops
/.bazelversion @The-OpenROAD-Project/openroad-devops
/.bazelignore @The-OpenROAD-Project/openroad-devops

Expand Down
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: 2

# MODULE.bazel is not covered: Dependabot has no Bazel ecosystem.
updates:
- package-ecosystem: "github-actions"
directory: "/"
Expand Down
60 changes: 0 additions & 60 deletions bazel/README.md

This file was deleted.

123 changes: 0 additions & 123 deletions bazel/install.sh

This file was deleted.

6 changes: 0 additions & 6 deletions bazel/slang-compat/README

This file was deleted.

51 changes: 0 additions & 51 deletions docs/user/BuildLocally.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ cd OpenROAD-flow-scripts
sudo ./setup.sh
```

## Using Bazel to build OpenROAD and run the ORFS flow (unsupported)

For ORFS/OpenROAD developers. Most of `./setup.sh` isn't needed when
building OpenROAD with Bazel — this provides the bare minimum to build
OpenROAD and test ORFS flows. No sudo required.
Install [Bazelisk](https://bazel.build/install/bazelisk) first.

``` shell
git clone --recursive https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts
cd OpenROAD-flow-scripts
bazelisk run //:install_for_bazel
cd flow && make
```

## Build

``` shell
Expand Down Expand Up @@ -68,40 +54,3 @@ Set up environment variables using `dev_env.sh`, then start Visual Studio Code.
. ./dev_env.sh
code tools/OpenROAD/
```

## Build OpenROAD and run a few ORFS flows with Bazel

Local use case:

- Install Bazelisk and no other dependencies, no need to run `sudo ./setup.sh`
- Modify & build OpenROAD
- Test built OpenROAD with a few ORFS flows

The Bazel support in OpenROAD and ORFS is work in progress and some Bazel experience is recommended before going spelunking in the Bazel builds.

Contributions welcome!

To build `designs/asap7/gcd:gcd_floorplan`:

cd flow
(cd ../tools/OpenROAD && bazel build :openroad -c opt) && bazelisk build designs/asap7/gcd:gcd_floorplan

Or to run all flows currently available in Bazel

cd flow
(cd ../tools/OpenROAD && bazel build :openroad -c opt) && bazelisk build ...

Note! ORFS uses the OpenROAD Bazel built binary in stop-gap way until OpenROAD has been switched to bzlmod, after which to build all flows becomes simpler as ORFS will build the requisite OpenROAD directly:

cd flow
bazelisk build ...

ORFS uses [bazel-orfs](https://github.com/The-OpenROAD-Project/bazel-orfs) to implement the flow and gets some depedencies, like yosys, from the Docker image. Over time, all dependencies should be built with Bazel and the dependency on the ORFS Docker image will be phased out.

### Upgrading MODULE.bazel with the latest bazel-orfs and ORFS Docker image

Run:

bazelisk run @bazel-orfs//:bump

Then commit MODULE.bazel and MODULE.bazel.lock.
60 changes: 0 additions & 60 deletions flow/README.md

This file was deleted.

63 changes: 0 additions & 63 deletions flow/designs/README.md

This file was deleted.

Loading