- Lanuch Vitis command mode
-
vitis --new -i
- Import Vitis library
-
import vitis
- Create a client
-
client = vitis.create_client()
- Create an Application component
-
comp = client.create_app_component(name="< >", platform = "< >", domain = "< >", template = "< >")# <> is the name of host component, platform path, domain and the template mode.
- Build the Application component
-
comp.build()
Command-line example to create a standalone Application component:
import vitis
client = vitis.create_client()
client.set_workspace(path="/ref_files/workspace")
comp = client.create_app_component(name="host_component", platform = "/ref_files/embedded_application/platform/export/platform/platform.xpfm", domain = "standalone_psu_cortexa53_0", template = "host_component")
comp.build()
Save the example code in a single file, such as build.py, then execute the command below to create the Application component:
vitis --new -s build.py