Pass in the OpenFPGA root dir
This commit is contained in:
parent
5f45d13bfd
commit
ca48841ae3
|
@ -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"
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue