- BSP packaging with hardware
source.
petalinux-package bsp -p <plnx-proj-root> --hwsource <hw-project-root> --output MY.BSP
It 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 --bsp
command checks for sources in the components/plnx-workspace/sources directory and applies those changes to the meta-user layer. To skip this, use--exclude-workspace
as shown in the following code snippet:petalinux-packge bsp -p <plnx-proj-root> --exclude-workspace
Alternatively, you can clean the project before executing thepetalinux-package --bsp
command as follows:petalinux-build -x mrproper -f
This removes the sources and appends directories from components/yocto/workspace/.
- BSP packaging with external sources.
The support for the search path is obsolete. You are responsible for copying the external sources under <plnx-proj-root>/components/ext_sources. For more information, see Using External Kernel and U-Boot with PetaLinux.