Skip to content

Rework how Petalinux is configured/compiled

Karol Krizka requested to merge kk_newpog into main

The Petalinux project is no longer stored inside the repository. Instead only changes relative to a base project are stored. This makes it easier to change Petalinux versions as the defaults are now taken from the project template.

The Petalinux project is created via ./Pog/CreatePetalinux.sh petawork petalinux. The first argument is the work directory where the Petalinux project is created. The second argument is the directory containing custom Petalinux configuration (stored ind git).

The scripts does the following:

  1. Delete any existing work at petawork.
  2. Create a new project using petalinux-create.
  3. Apply configurations stored in petalinux/config and petalinux/rootfs_config.
  4. Copy any new layers (petalinux/meta-*) and add them to config.

The contents of the configurations in step 3. are applied using script ./Pog/ConfigPetalinux.sh. The contents expect one configuration per line in the format KEY value. These are then passed to SetPetalinuxConfig.sh. If a KEY should be unset, then leave value blank. Blank lines or lines starting with # are ignored.

Merge request reports