mirror of
https://github.com/openwrt/openwrt.git
synced 2025-05-01 08:20:37 +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 $?
|
return $?
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
[ "$magic" != "d00dfeed" ] && {
|
fit_check_image "$1"
|
||||||
echo "Invalid image type."
|
return $?
|
||||||
return 1
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user