Additional BSP Packaging Options - 2024.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2024-11-13
Version
2024.2 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 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 the petalinux-package --bsp command as follows:
    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 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.