diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2017-12-17 15:00:00 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-12-21 01:05:16 +0100 |
commit | 213ba77359191d6e3053119a8eb8f1e924aa2cb4 (patch) | |
tree | 352c1fdcb328d1f875293a5508958fcae3bec4da /target/linux/apm821xx/base-files/lib/upgrade/platform.sh | |
parent | e6604fab514f92cf2851b043d751f690666c9e82 (diff) | |
download | upstream-213ba77359191d6e3053119a8eb8f1e924aa2cb4.tar.gz upstream-213ba77359191d6e3053119a8eb8f1e924aa2cb4.tar.bz2 upstream-213ba77359191d6e3053119a8eb8f1e924aa2cb4.zip |
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>
Diffstat (limited to 'target/linux/apm821xx/base-files/lib/upgrade/platform.sh')
-rwxr-xr-x | target/linux/apm821xx/base-files/lib/upgrade/platform.sh | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/target/linux/apm821xx/base-files/lib/upgrade/platform.sh b/target/linux/apm821xx/base-files/lib/upgrade/platform.sh index 8c716bf44e..7c9c413b42 100755 --- a/target/linux/apm821xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/apm821xx/base-files/lib/upgrade/platform.sh @@ -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" ;; |