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