Additional BSP Packaging Options - 2022.1 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2022-04-26
Version
2022.1 English
  1. 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.

  2. Exclude workspace changes

    The default petalinux-package --bsp command checks for sources in 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 the petalinux-package --bsp command as shown below.
    $ petalinux-build -x mrproper -f

    This removes the sources and appends directories from components/yocto/workspace/.

  3. 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.