petalinux-build Command Line Options - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

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

The following table outlines the valid options for the petalinux-build tool.

Table 1. petalinux-build Command Line Options
Option Functional Description Value Range Default Value
-p,--project PROJECT PetaLinux project directory path. This is optional. User-specified None
-c, --component COMPONENT Builds specified component. These are the default values which are supported. You can build against your own target (such as your application or module). This is optional.
  • bootloader (AMD Zynq™ UltraScale+™ MPSoC, Zynq architecture, and MicroBlaze™ CPU)
  • kernel
  • u-boot
  • rootfs
  • pmufw, only for Zynq UltraScale+ MPSoC
  • arm-trusted-firmware, for Zynq UltraScale+ MPSoC and AMD Versal™ adaptive SoC.
  • device-tree
  • plm, only for Versal adaptive SoC
  • psmfw, only for Versal adaptive SoC
  • apps
  • modules
None
-x, --execute STEP Executes specified build step. All Yocto tasks can be passed through this option. To get all tasks of a component, use “listtasks”. This is optional.
  • build
  • clean
  • cleanall
  • cleansstate
  • distclean
  • install
  • listtasks
  • populate_sysroot
  • package
  • mrproper
Build
-v,--verbose Displays additional output messages. This is optional. None None
-s, --sdk Builds Yocto SDK. This is optional. None None
--esdk Builds Yocto e-SDK.This is optional. None Nnone
-h Lists all the sub-components of a component. Valid only for rootfs. This is optional. rootfs None
-f, --force Forces a specific task to run against a component, or a single task in the component, ignoring the stamps. This is optional. None None