Command-line to Create an Embedded Application Component - 2024.2 English - UG1702

Vitis Reference Guide (UG1702)

Document ID
UG1702
Release Date
2025-01-15
Version
2024.2 English
Lanuch Vitis mode
vitis -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