firmware-utils/ptgen: set GPT partition attributes and name
authorDaniel Golle <daniel@makrotopia.org>
Thu, 25 Feb 2021 22:49:55 +0000 (22:49 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 28 Feb 2021 01:23:48 +0000 (01:23 +0000)
commitdbb0e8d934d87d593a29634ea471934948e8439f
tree310912bc3f1d1d8e3e5315f4d82dc71b9a0d8912
parentd116a63f2b2842d9343c76f2b0908de5dbcfa288
firmware-utils/ptgen: set GPT partition attributes and name

Allow setting GPT partition names as used by TF-A bl2 to identify the
FIP volume to load from eMMC and SD-card.
While at it, also allow setting 'required' attribute as it should be
used for volumes which are essential for the system to boot.
Also properly handle setting the LEGACY_BOOT flag on the partition
selected as 'active', as this is how it is specified in the spec.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
src/ptgen.c