mirror of
https://github.com/openwrt/openwrt.git
synced 2025-04-24 04:56:12 +00:00
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:
parent
29ec74b8c7
commit
7ea0f647b9
@ -69,11 +69,8 @@ platform_check_image() {
|
||||
return $?
|
||||
;;
|
||||
*)
|
||||
[ "$magic" != "d00dfeed" ] && {
|
||||
echo "Invalid image type."
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
fit_check_image "$1"
|
||||
return $?
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user