cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bitblit11
Adventurer
Adventurer
175 Views
Registered: ‎06-13-2017

Absolute paths in the Vitis Platform project

We are still have a problem using Vitis projects in change management and discovered one of the root causes.  The platform.spr file in the platform project contains an absolute path to the Vitis installation directory.  When the project gets checked out by somebody that installed the toolchain in a different directory, Vitis fails to build the project because it has the wrong path.  Specifically, the following paths in the platform.spr file have the absolute paths:

{
    "systems":[
      {
         "domains":[
            {
               "qemuArgs":"/opt/Xilinx/Vitis/2020.2/data/emulation/platforms/zynqmp/sw/a53_standalone/qemu/qemu_args.txt",
               "qemuData":"/opt/Xilinx/Vitis/2020.2/data/emulation/platforms/zynqmp/sw/a53_standalone/qemu/",
               "pmuQemuArgs":"/opt/Xilinx/Vitis/2020.2/data/emulation/platforms/zynqmp/sw/a53_standalone/qemu/pmu_args.txt",
            },
            {
               "qemuArgs":"/opt/Xilinx/Vitis/2020.2/data/emulation/platforms/zynqmp/sw/a53_standalone/qemu/qemu_args.txt",
               "qemuData":"/opt/Xilinx/Vitis/2020.2/data/emulation/platforms/zynqmp/sw/a53_standalone/qemu/",
               "pmuQemuArgs":"/opt/Xilinx/Vitis/2020.2/data/emulation/platforms/zynqmp/sw/a53_standalone/qemu/pmu_args.txt",
            }
         ]
      }
   ]
}

 

When this project is built on a PC that does not have the tools installed at /opt/Xilinx, it fails to generate the boot.bin and qemu doesn't work.  This path is available in environment variables.  May I suggest the tool use the environment variables, or the path that vitis itself was launched from rather than storing it in the project file?

0 Kudos
0 Replies