scripts/image_signing: Add ensure_amd_psp_flags script

Currently there is no script to ensure that AMD PSP flags are set
correctly in a firmware image. This commit adds
to handle that functionality. The script can check that certain flags
are set as well as checking that certain flags are not set.

TEST=Ran script with grunt, zork, MI and skyrim images, verified that
it responds correctly to PSP flag values

Signed-off-by: Robert Zieba <>
Change-Id: Ie0864544b9b97704ee901d893b4d833c1ab068b9
Reviewed-by: Mike Frysinger <>
1 file changed