Pass in the OpenFPGA root dir

This commit is contained in:
chungshien-chai 2024-07-29 11:04:03 -07:00
parent 5f45d13bfd
commit ca48841ae3
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Majority of the content refer to fix_device_example_script.openfpga
ext_exec --command "python3 ${OPENFPGA_EXT_EXEC_PYTHON_SCRIPT} run_golden"
ext_exec --command "python3 ${OPENFPGA_EXT_EXEC_PYTHON_SCRIPT} run_golden ${OPENFPGA_PATH}"
ext_exec --command "python3 ${OPENFPGA_EXT_EXEC_PYTHON_SCRIPT} generate_testcase"

View File

@ -49,7 +49,8 @@ def read_bitstream_annotation_xml(file) :
if sys.argv[1] == "run_golden" :
openfpga_exe = os.path.abspath("../../../../../../../../../build/openfpga/openfpga")
assert len(sys.argv) >= 3
openfpga_exe = os.path.abspath("%s/build/openfpga/openfpga" % sys.argv[2])
assert os.path.exists(openfpga_exe)
shutil.rmtree("golden", ignore_errors=True)
os.mkdir("golden")