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.
Server | Description |
---|---|
downloads | Source of download files are available in http://petalinux.xilinx.com/sswreleases/rel-v2021/downloads |
aarch64 | sstate mirrors for Zynq UltraScale+ MPSoC/RFSoC , and Versal devices. |
arm | sstate mirrors for Zynq-7000 |
mb-full | sstate mirrors for MicroBlaze™ processors (full) |
mb-lite | sstate mirrors for MicroBlaze processors (lite) |
Source Mirrors
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.
. SelectReduce Build Time
To reduce the build time by disabling the network sstate feeds, de-select the
.Sstate Feeds
You can set sstate feeds through
petalinux-config
.
- 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
mount point. - sstate feeds on webserver: Go to
For more information, see How to reduce build time using SSTATE CACHE
and enter the URL for sstate feeds.