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>