Skip to content

Commit

Permalink
openroad.bzl: Force using bash in scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
  • Loading branch information
eszpotanski committed Apr 12, 2024
1 parent 5a76d99 commit 998ab90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openroad.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def build_openroad(
name = target_name + "_" + stage + "_make_script",
tools = [Label("//:orfs")],
srcs = [make_script_template, design_config, stage_config, make_pattern],
cmd = "echo \"chmod -R +w . && \" `cat $(location " + str(make_script_template) + ")` " + entrypoint_cmd + " \\\"$$\\@\\\" > $@",
cmd = "echo \"#!/bin/bash\nchmod -R +w . && \" `cat $(location " + str(make_script_template) + ")` " + entrypoint_cmd + " \\\"$$\\@\\\" > $@",
outs = ["logs/%s/%s/%s/make_script_%s.sh" % (platform, out_dir, variant, stage)],
)

Expand Down Expand Up @@ -657,7 +657,7 @@ def build_openroad(
name = target_name + "_memory_make_script",
tools = [Label("//:orfs")],
srcs = [make_script_template, design_config, stage_config, make_pattern],
cmd = "echo \"chmod -R +w . && \" `cat $(location " + str(make_script_template) + ")` " + entrypoint_cmd + " \\\"$$\\@\\\" > $@",
cmd = "echo \"#!/bin/bash\nchmod -R +w . && \" `cat $(location " + str(make_script_template) + ")` " + entrypoint_cmd + " \\\"$$\\@\\\" > $@",
outs = ["logs/%s/%s/%s/make_script_memory.sh" % (platform, out_dir, variant)],
)
native.sh_binary(
Expand Down

0 comments on commit 998ab90

Please sign in to comment.