Rework how Petalinux is configured/compiled
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:
- Delete any existing work at
petawork
. - Create a new project using
petalinux-create
. - Apply configurations stored in
petalinux/config
andpetalinux/rootfs_config
. - 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.