Home

petalinuxbuild

petalinuxbuild is a command-line utility within the Xilinx PetaLinux workflow used to build the software images for a PetaLinux project. It orchestrates the Yocto-based BitBake build system to assemble a Linux kernel, device tree, boot loader, and root filesystem configured for the target Xilinx hardware. The exact set of images produced depends on the project configuration, including machine settings, kernel options, and filesystem layout.

Usage and workflow: A project is created with petalinux-create and configured with petalinux-config. After configuration, a

Output: On successful completion, petalinux-build writes artifacts to the project’s images directory. Typical outputs include a

Notes: petalinuxbuild is part of the PetaLinux toolchain and relies on the host system’s environment and the

full
build
is
started
by
running
petalinux-build
in
the
project
directory.
The
command
can
target
specific
components
with
the
-c
option,
for
example
petalinux-build
-c
kernel,
petalinux-build
-c
rootfs,
or
petalinux-build
-c
images.
The
build
process
compiles
cross-compiled
binaries
and
assembles
boot
artifacts
appropriate
for
the
target
hardware.
The
resulting
artifacts
are
suitable
for
deployment
on
devices
such
as
SD
cards
or
other
boot
media.
kernel
image,
a
device
tree
blob,
boot-related
files,
and
a
root
filesystem
in
a
chosen
format.
These
components
can
be
combined
into
a
bootable
image
set
for
the
target
board
or
packaged
for
distribution
via
other
PetaLinux
tools.
board
support
package
configured
in
the
project.
It
is
commonly
used
for
embedded
Linux
development
on
Xilinx
devices,
including
Zynq-7000
and
Zynq
UltraScale+
MPSoC
families.