esac
}
-PART_NAME=firmware
+PART_NAME=Kernel
platform_check_image() {
local board=$(board_name)
+ local magic="$(get_magic_long "$1")"
[ "$#" -gt 1 ] && return 1
case "$board" in
+ elecom,wrc-2533gent)
+ [ "$magic" != "d00dfeed" ] && {
+ echo "Invalid image type."
+ return 1
+ }
+ return 0
+ ;;
+
*)
echo "Sysupgrade is not supported on your board yet."
return 1