createlib

Create a library project.

Syntax

createlib [OPTIONS]

Create static or shared library project.

Options

Option Description
-name <project-name> Project name that should be created.
-type <library-type> <library-type> can be 'static' or 'shared' Default type is 'shared'.
-proc <processor-type> Processor type that should be used for creating application project. 'ps7_cortex9', 'microblaze', 'psu_cortexa53' or 'psu_cortexr5'.
-os <OS name> OS type for the application project. 'linux' or 'standalone' Default type is linux.
-lang <programming-language> <programming-language> can be 'c' or 'c++'. Default is c.
-arch <arch-type> Processor architecture, <arch-type> can be 32 or 64 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.
-flags <compiler-flags> Optional - compiler flags.

Returns

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

Example(s)

createlib -name lib1 -type static -proc ps7_cortexa9

Create a static library project with name 'lib1' for processor 'ps7_cortexa9' and default os 'standalone' with default language 'C'.

createlib -name lib2 type shared -proc psu_cortexa53 -os linux -lang C++

Create a shared library project with name 'lib2' for processor 'psu_cortexa53' and Linux OS with C++ language.

createlib -name st-stnd-r5-c-flags -type static -proc psu_cortexr5

-os standalone -lang C -arch 32 -flags {-g3 -pg} Create a static library project with name 'st-stnd-r5-c-flags' for processor 'psu_cortexr5' and standalone OS with C language with extra compiler flags '-g3 -pg'.