createapp

Create an application project.

Syntax

createapp [OPTIONS]

Create an application project from a list of template applications.

Options

Option Description
-name <project-name> Project name that should be created.
-app <template-application-name> Name of the template application. Default is "Hello World". Use 'repo -apps' command to get the list of all application templates.
-proc <processor-name> Processor instance that should be used for creating application project.
-hwproject <hw project name> Hardware project for which the application or bsp project should be created.
-bsp <BSP project name> BSP project for which the application project should be created. If this option is not specified, a default bsp is created
-os <OS name> OS type for the application project. Default type is standalone
-lang <programming-language> <programming-language>, can be 'c' or 'c++'.
-arch <arch-type> Processor architecture, <arch-type> can be 32 or 64 bits. This option is used to build the project with 32/64 bit toolchain. This is valid only for A53 processors, defaults to 32-bit for other processors.

Returns

Nothing, if the Application project is created successfully. Error string, if invalid options are used or if the project cannot be created.

Example(s)

createapp -name hello1 -bsp bsp1 -hwproject hw1 -proc ps7_cortexa9_0

Create a default application "Hello World" project with name 'hello1' for processor 'ps7_cortexa9_0'.

createapp -name fsbl1 -app {Zynq FSBL} -hwproject hw1 -proc ps7_cortexa9_0

Create a Zynq FSBL project with name 'fsbl1' and also creates a BSP 'fsbl1_bsp' for processor 'ps7_cortexa9_0' and default OS 'standalone'.

createapp -name e1 -app {Empty Application} -hwproject hw2

-proc microblaze_0 -lang c++ Create an empty C++ application project with name 'e1'.

createapp -name hello2 -app {Hello World} -hwproject hw1

-proc psu_cortexa53_0 -arch 32 Create a Hello World application project with name 'hello2' for processor 'psu_cortexa53_0' with 32-bit tool chain.