diff options
author | Wade Fife <wade.fife@ettus.com> | 2021-09-08 09:29:43 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-09-10 15:07:05 -0500 |
commit | 3d7d5668fbd0b3836315cde10a68a5ba19240008 (patch) | |
tree | 150fd9266315f4460ad3ec4f2cad2ade451860aa /host/python | |
parent | edf7ce3f1942a9ef6d16c7f29ecc272937865261 (diff) | |
download | uhd-3d7d5668fbd0b3836315cde10a68a5ba19240008.tar.gz uhd-3d7d5668fbd0b3836315cde10a68a5ba19240008.tar.bz2 uhd-3d7d5668fbd0b3836315cde10a68a5ba19240008.zip |
rfnoc: Add vivado-path to rfnoc_image_builder
Adds a --vivado-path option to rfnoc_image_builder that, if present,
gets passed to setupenv.sh for the target device. This can be used to
specify the location of Vivado if it is not installed in one of the
default search locations.
Diffstat (limited to 'host/python')
-rwxr-xr-x | host/python/uhd/imgbuilder/image_builder.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/python/uhd/imgbuilder/image_builder.py b/host/python/uhd/imgbuilder/image_builder.py index 9ce57d0e0..159c075a7 100755 --- a/host/python/uhd/imgbuilder/image_builder.py +++ b/host/python/uhd/imgbuilder/image_builder.py @@ -780,6 +780,8 @@ def build(fpga_path, device, image_core_path, edge_file, **args): logging.debug("Temporarily changing working directory to %s", build_dir) os.chdir(build_dir) make_cmd = ". ./setupenv.sh " + if "vivado_path" in args and args["vivado_path"]: + make_cmd = make_cmd + "--vivado-path=" + args["vivado_path"] + " " if "clean_all" in args and args["clean_all"]: make_cmd = make_cmd + "&& make cleanall " target = args["target"] if "target" in args else "" |