petalinux-create -t project Examples - 2022.1 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2022-04-26
Version
2022.1 English

The following examples demonstrate proper usage of the petalinux-create -t project command.

  • Create a new project from a reference BSP file:
    $ petalinux-create -t project -s <PATH-TO-BSP>
  • Create a new project based on the MicroBlazeâ„¢ processor template:
    $ petalinux-create -t project -n <NAME> --template microblaze
  • Create a project from the PetaLinux project BSP and specify the TMPDIR PATH:
    $ petalinux-create -t project -s <PATH_TO_PETALINUX_PROJECT_BSP> --tmpdir <TMPDIR PATH>
  • Create a project from a template and specify the TMPDIR PATH:
    $ petalinux-create -t project -n <PROJECT> --template <TEMPLATE> --tmpdir <TMPDIR PATH>

By default, the directory structure created by --template is minimal, and is not useful for building a complete system until initialized using the petalinux-config --get-hw-description command. Projects created using a BSP file as their source are suitable for building immediately.