petalinux-package --bsp Command Examples - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2023-10-18
Version
2023.2 English

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

  • Clean the project and 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>