"eval $(python3 script.py)" does not handle the return code correctly and would try to evaluate
the complete output of the Python traceback. Temporarily save the output in a variable and check
the return code. If the RC is unequal to zero, return the RC and leave the bash script.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
The resources.yaml file does not exists at the beginning of the db-prepare calls
but the environment wants to read it which leads to the following error:
Preparing artix7 files
============================
Traceback (most recent call last):
File ".../prjxray/utils/create_environment.py", line 62, in <module>
main()
File ".../prjxray/utils/create_environment.py", line 55, in main
environment = get_environment_variables()
File ".../prjxray/utils/create_environment.py", line 37, in get_environment_variables
part_info = get_part_information(db_root, part)
File ".../prjxray/prjxray/util.py", line 44, in get_part_information
"Mapping file {} does not exists".format(filename)
AssertionError: Mapping file .../prjxray/database/artix7/mapping/parts.yaml does not exists
Do not dump the environment during this stage because the XRAY_PART is the only
neccessary information which is set in the <family>.sh script.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
The storage device needs a little bit of time to be attached. Wait at the
beginning to make sure the storage device is really not mounted.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Adds a db-extra-X-roi command which will call a Python tool because the
part list is some kind of dynamic and Makefiles can't read from a YAML file
and iterates over all keys.
Also some minor clean-ups with the kintex and zynq extra commands.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
* Adds a new tool to update the parts mapping file for a family.
* Adds a new tool to update the resource file for a family.
* Adds a new tool to roi all parts by calling "make roi_only" with different
parts
Update the Makefile to update the artix7 files with "make db-update".
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
The fuzzer Makefile calls 'make clean' of all fuzzers. Both Makefiles
do not have a clean but a clean_all command. Rename to also clean these data.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
The 'make clean' command in the top-level Makefile calls 'clean' of all
fuzzers. The top-level Makefile does not source and settings file before and
therefore no XRAY_PART is set.
The 005's fuzzers only cleans data for a XRAY_PART file, which is not set.
Remove all fuzzer data during clean and only for a specific part during
clean_all.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Included changes:
- unify params format to JSON
- add generate_ports script
- export attributes and ports to prjxray_db
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
This step checks the host environment. Right now, it only checks if a drive
is mounted to /tmpfs. If it's not mounted, the run will be aborted and the
dmesg printed.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>