mirror of
https://github.com/YosysHQ/yosys
synced 2026-04-26 13:53:34 +00:00
Fix some escaping with different approach
This commit is contained in:
parent
86c9b06d98
commit
31bf712059
2 changed files with 12 additions and 15 deletions
|
|
@ -17,12 +17,9 @@ def generate_target(name, command):
|
|||
target = f"{name}"
|
||||
print(f"all: {target}")
|
||||
print(f".PHONY: {target}")
|
||||
print(f"{target}_cmd={command}")
|
||||
print(f"{target}:")
|
||||
if command:
|
||||
print(f"\t@$(call run_test,{target}, \\")
|
||||
print(f"\t{command})")
|
||||
else:
|
||||
print(f"\t@$(call run_test,{target})")
|
||||
print(f"\t@$(call run_test,{target}, $({target}_cmd))")
|
||||
|
||||
def generate_ys_test(ys_file, yosys_args="", commands=""):
|
||||
cmd = f'$(YOSYS) -ql {ys_file}.err {yosys_args} {ys_file} >/dev/null 2>&1 && mv {ys_file}.err {ys_file}.log'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue