forked from Ivasoft/openwrt
apm821xx: enable metadata for packaging
This patch enables metadata-supported image verification for all apm821xx supported devices. Since this method comes with a built-in image verification tool (fwtool), the previous image checks can be removed. Signed-off-by: Mathias Kresin <dev@kresin.me> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
committed by
Mathias Kresin
parent
e6604fab51
commit
213ba77359
@@ -1,35 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
PART_NAME=firmware
|
||||
REQUIRE_IMAGE_METADATA=1
|
||||
|
||||
platform_check_image() {
|
||||
local board=$(board_name)
|
||||
|
||||
[ "$#" -gt 1 ] && return 1
|
||||
|
||||
case "$board" in
|
||||
mbl)
|
||||
mbl_do_platform_check "$1"
|
||||
return $?;
|
||||
;;
|
||||
|
||||
mr24|\
|
||||
mx60)
|
||||
merakinand_do_platform_check $board "$1"
|
||||
return $?;
|
||||
;;
|
||||
|
||||
wndr4700)
|
||||
nand_do_platform_check $board "$1"
|
||||
return $?;
|
||||
;;
|
||||
|
||||
*)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Sysupgrade is not yet supported on $board."
|
||||
return 1
|
||||
}
|
||||
|
||||
platform_pre_upgrade() {
|
||||
@@ -37,10 +22,7 @@ platform_pre_upgrade() {
|
||||
|
||||
case "$board" in
|
||||
mr24|\
|
||||
mx60)
|
||||
merakinand_do_upgrade "$1"
|
||||
;;
|
||||
|
||||
mx60|\
|
||||
wndr4700)
|
||||
nand_do_upgrade "$1"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user