mediatek: mt7622: validate uImage.FIT

Validate the uImage.FIT instead of only checking the image magic.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2025-04-21 19:03:58 +01:00
parent 29ec74b8c7
commit 7ea0f647b9

View File

@ -69,11 +69,8 @@ platform_check_image() {
return $? return $?
;; ;;
*) *)
[ "$magic" != "d00dfeed" ] && { fit_check_image "$1"
echo "Invalid image type." return $?
return 1
}
return 0
;; ;;
esac esac