petalinux-create project Examples - 2024.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2024-11-13
Version
2024.2 English

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

  • Create a new project from a reference BSP file:
    petalinux-create project -s <PATH-TO-BSP>
  • Create a new project based on the MicroBlazeâ„¢ processor template:
    petalinux-create project -n <NAME> --template microblaze
  • Create a project from the PetaLinux project BSP and specify the TMPDIR PATH:
    petalinux-create project -s <PATH_TO_PETALINUX_PROJECT_BSP> --tmpdir <TMPDIR PATH>
  • Create a project from a template and specify the TMPDIR PATH:
    petalinux-create 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.