From 88585bcd540db7f3100153b8dbed3667ee896943 Mon Sep 17 00:00:00 2001 From: Pawel Czarnecki Date: Mon, 26 Feb 2024 14:11:19 +0000 Subject: [PATCH] Remove orfs-bazel.mk Signed-off-by: Pawel Czarnecki --- config.mk | 1 - openroad.bzl | 5 +---- orfs-bazel.mk | 14 -------------- 3 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 orfs-bazel.mk diff --git a/config.mk b/config.mk index 19cf1a42..eb492a0f 100644 --- a/config.mk +++ b/config.mk @@ -5,7 +5,6 @@ export PLATFORM=asap7 export WORK_HOME_READ?=$(WORK_HOME) -include $(BAZEL_ORFS)/clock_period-bazel.mk --include $(BAZEL_ORFS)/orfs-bazel.mk -include $(BAZEL_ORFS)/synth-bazel.mk -include $(BAZEL_ORFS)/synth_sdc-bazel.mk -include $(BAZEL_ORFS)/floorplan-bazel.mk diff --git a/openroad.bzl b/openroad.bzl index 676a6889..d261d112 100644 --- a/openroad.bzl +++ b/openroad.bzl @@ -271,10 +271,7 @@ def build_openroad( native.genrule( name = target_name + "_" + stage + "_make_script", tools = [], - srcs = [ - Label("//:orfs-bazel.mk"), - Label("//:make_script.template.sh"), - ] + + srcs = [Label("//:make_script.template.sh")] + all_sources, cmd = "echo \"chmod -R +w . && \" `cat $(location " + str(Label("//:make_script.template.sh")) + ")` " + " ".join(wrap_args(stage_args.get(stage, []))) + " \\\"$$\\@\\\" > $@", outs = ["logs/" + platform + "/%s/%s/make_script_%s.sh" % (output_folder_name, variant, stage)], diff --git a/orfs-bazel.mk b/orfs-bazel.mk deleted file mode 100644 index d14946e1..00000000 --- a/orfs-bazel.mk +++ /dev/null @@ -1,14 +0,0 @@ -.PHONY: bazel-%-orfs -bazel-%-orfs: - mkdir -p $(LOG_DIR) - $(UNSET_AND_MAKE) print-SUB_MAKE | \ - sed 's/bazel-out\/k8-fastbuild\/bin/bazel-bin/g' | \ - sed 's/WORK_HOME=\S* //g' | \ - sed 's/SUB_MAKE = /.\/orfs /g' | \ - sed 's/\\/\\\\/g' | \ - sed "s|`echo $$ORFS`|\\$$ORFS|g" | \ - sed 's/ --no-print-directory//g' | \ - sed 's/$$/ "$$@"/' | \ - sed "s|`echo $$ORFS`|\\\\\$$ORFS|g" \ - >$(LOG_DIR)/$*.sh - chmod +x $(LOG_DIR)/$*.sh