petalinux-create -t COMPONENT Examples - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
Release Date
2023.2 English

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

  • Create an application component that is enabled in the root file system.
    petalinux-create -t apps -n <NAME> --template <template> --enable
  • Create a new install-only application component. In this flow, nothing is compiled.
    petalinux-create -t apps -n <NAME> --template install
  • Create a new kernel module and enable it.
    petalinux-create -t modules -n <name> --template <template> --enable
  • Create an application with multiple source files.
    petalinux-create -t apps --template install --name mylibs --srcuri "<path-to-dir>/ <path-to-dir>/"
  • Create an app with remote sources. The following examples create applications with specified git/http/https pointing to the srcuri.
    petalinux-create -t apps -n myapp --enable --srcuri http://example.tar.gz
    petalinux-create -t apps -n myapp --enable --srcuri git://example.git\;protocol=https
    petalinux-create -t apps -n myapp --enable --srcuri https://example.tar.gz
    Note: This is applicable for applications and modules.