This section describes the build optimization techniques with the PetaLinux tools.
Deselecting Default Components
You can deselect default components, if they are not needed. To disable the FSBL and PMU firmware for Zynq® UltraScale+™ MPSoC, deselect the following options in .
Deselecting these components removes these components from the default build flow.
Local Mirror Servers
You can set internal mirrors on the NFS or web server which can speed up the builds. By default, PetaLinux uses sstate-cache and download mirrors from petalinux.xilinx.com. Follow these steps to work with local, NFS, or the internal webserver copy of sstate in PetaLinux. You can download the sstate from the download area along with PetaLinux.
|downloads||Source of download files are available in http://petalinux.xilinx.com/sswreleases/rel-v2020/downloads|
|aarch64||sstate mirrors for Zynq UltraScale+ MPSoC|
|arm||sstate mirrors for Zynq-7000|
|mb-full||sstate mirrors for MicroBlaze™ processors (full)|
|mb-lite||sstate mirrors for MicroBlaze processors (lite)|
You can set source mirrors through file://<local downloads path> for all projects. Save the configuration to use the download mirrors and verify the changes in build/conf/plnxtool.conf.. Select
Reduce Build Time
To reduce the build time by disabling the network sstate feeds, de-select the.
You can set sstate feeds through
- sstate feeds on NFS: Go to
For example, to enable, use /opt/petalinux/sstate-cache_2020/aarch64.
and enter the full path of the sstate directory. By enabling this
option, you can point to your own shared state which is available at a NFS/local
- sstate feeds on webserver: Go to and enter the URL for sstate feeds.