- BSP packaging with hardware
source.
$ petalinux-package --bsp -p <plnx-proj-root> --hwsource <hw-project-root> --output MY.BSPIt does not modify the specified PetaLinux project
<plnx-proj-root>. It puts the specified hardware project source to <plnx-proj-root>/hardware/ inside MY.BSP archive. - Exclude workspace changes
The default
petalinux-package --bspcommand checks for sources in components/plnx-workspace/sources directory and applies those changes to the meta-user layer. To skip this, use--exclude-workspaceas shown in the following code snippet:$ petalinux-packge --bsp -p <plnx-proj-root> --exclude-workspaceAlternatively, you can clean the project before executing thepetalinux-package --bspcommand as shown below.$ petalinux-build -x mrproper -fThis removes the sources and appends directories from components/yocto/workspace/.
- BSP packaging with external sources.
The support for search path is obsolete. It is your responsibility to copy the external sources under <plnx-proj-root>/components/ext_sources. For more information, see Using External Kernel and U-Boot with PetaLinux.