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>/mylib1.so <path-to-dir>/mylib2.so"
- Create an app with remote sources. The following examples will 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.