Command-line to Create an Embedded Application Component - 2023.1 English

Vitis Unified IDE and Common Command-Line Reference Manual (UG1553)

Document ID
UG1553
Release Date
2023-07-17
Version
2023.1 English
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