mkimage: fix validation of legacy images with custom magic
authorDaniel Golle <daniel@makrotopia.org>
Fri, 12 Aug 2022 10:02:04 +0000 (12:02 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 12 Aug 2022 10:02:41 +0000 (12:02 +0200)
commit68cd4dc3ed6e50988bcc4f1eaeec9902677f109b
tree5f0f1b303f2c5505a204eac024a94235593e497d
parent1291a682f855f6d8814134771f9923f4f80b524f
mkimage: fix validation of legacy images with custom magic

All images generated by mkimage are now always validated.
This change broke our downstream support for setting a custom value for
IH_MAGIC (mkimage -M ...). Make sure also plain legacy kernel images
with custom value set for IH_MAGIC validate correctly.

Fixes: fa9895ee5b ("tools: mkimage: update to U-Boot release 2022.07")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
tools/mkimage/patches/030-allow-to-use-different-magic.patch