petalinux-build Command Line Options - 2021.2 English

PetaLinux Tools Documentation: Reference Guide

Document ID
UG1144
Release Date
2021-10-27
Version
2021.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 ( 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 Versal® ACAP.
  • device-tree
  • plm, only for Versal ACAP
  • psmfw, only for Versal ACAP
  • 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