The-OpenROAD-Project / megaboom

BSD 3-Clause "New" or "Revised" License
12 stars 3 forks source link

Migrate rules to bazel-orfs #23

Closed lpawelcz closed 4 months ago

lpawelcz commented 5 months ago

This PR depends on https://github.com/Pinata-Consulting/bazel-orfs/pull/1 and https://github.com/Pinata-Consulting/bazel-orfs/pull/2. Please do not merge this PR before https://github.com/Pinata-Consulting/bazel-orfs/pull/1 and https://github.com/Pinata-Consulting/bazel-orfs/pull/2 are merged. Once it is done we will update the first commit (https://github.com/The-OpenROAD-Project/megaboom/commit/da75b29075ee78903d0f811fa84fbedd342c9d15) which introduces dependency on bazel-orfs to use updated version of this repository and we will convert this PR from draft to regular PR.

This PR introduces dependency on bazel-orfs where build_openroad macro is defined. It also deletes from megaboom repository all files that were moved to bazel-orfs in https://github.com/Pinata-Consulting/bazel-orfs/pull/1 and are no longer needed here.

One additional required change is the introduction of entrypoint makefile. Its purpose is to include config.mk from bazel-orfs in order to workaround issues created by running make targets defined in bazel-orfs repository. by having this entrypoint makefile, targets are defined in the root of the bazel sandbox and not in external/bazel-orfs subdirectory of the sandbox which allows to provide correct paths to megaboom dependencies like e.g.: SDC or Verilog files. Path to include config.mk is provided through BAZEL_ORFS environment variable which is set in bazel-orfs.

oharboe commented 4 months ago

merged