mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-22 18:09:41 +00:00
Make out of tree build testing possible
This commit is contained in:
parent
5c6de04467
commit
c0779f488a
37 changed files with 131 additions and 119 deletions
|
|
@ -97,7 +97,7 @@ def print_header(extra=None):
|
|||
print(f"ifneq ($(wildcard {yosys_basedir}/Makefile.conf),)")
|
||||
print(f"include {yosys_basedir}/Makefile.conf")
|
||||
print(f"endif")
|
||||
print(f"YOSYS ?= {yosys_basedir}/yosys")
|
||||
|
||||
print("")
|
||||
print("export YOSYS_MAX_THREADS := 4")
|
||||
if extra:
|
||||
|
|
@ -128,7 +128,7 @@ def generate_custom(callback, extra=None):
|
|||
callback()
|
||||
|
||||
def generate_autotest_file(test_file, commands):
|
||||
cmd = f"../tools/autotest.sh -G -j ${{SEEDOPT}} ${{EXTRA_FLAGS}} {test_file}; \\\n{commands}"
|
||||
cmd = f"../tools/autotest.sh -G -j ${{SEEDOPT}} -Y ${{YOSYS}} ${{EXTRA_FLAGS}} {test_file}; \\\n{commands}"
|
||||
generate_target(test_file, cmd)
|
||||
|
||||
def generate_autotest(pattern, extra_flags, cmds=""):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue