petalinux-package --bsp Command Examples - 2021.2 English

PetaLinux Tools Documentation: Reference Guide

Document ID
UG1144
Release Date
2021-10-27
Version
2021.2 English

The following examples demonstrate the right usage of the petalinux-package --bsp command.

  • Clean the project and then generate the BSP installation image (.bsp file).
    $ petalinux-package --bsp --clean -o <PATH-TO-BSP> -p <PATH-TO-PROJECT>
  • Generate the BSP installation image that includes a reference hardware definition.
    $ petalinux-package --bsp -p <PATH-TO-PROJECT>  --hwsource <PATH-TO-HW-EXPORT> -o <PATH-TO-BSP> 
  • Generate the BSP installation image from a neutral location.
    $ petalinux-package --bsp -p <PATH-TO-PROJECT> -o <PATH-TO-BSP>
  • Generate the BSP installation image excluding some files.
    $ petalinux-package --bsp -p <path_to_project> -o <path_to_bsp> --exclude-from-file <EXCLUDE_FILE>