ipq806x: add platform_pre_upgrade for sysupgrade
authorrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 15 Sep 2015 16:05:10 +0000 (16:05 +0000)
committerrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 15 Sep 2015 16:05:10 +0000 (16:05 +0000)
commit75f2aeb54b27f563dba8dc14fe4f07543dbb738d
tree944864d8bbf657f570b3dc3150a4ae6602bf7132
parentac3320732d5531cade37ba1399dc20122703295f
ipq806x: add platform_pre_upgrade for sysupgrade

We're in process of cleaning nand_do_platform_check. Currently is leaves
a special mark in /tmp/sysupgrade-nand-path triggering some diffent code
path in nand_upgrade_stage1. This can be a bit confusing.

The plan is to have the check function only check the image and nothing
else. Then platform code (platform_pre_upgrade) should trigger NAND
specific upgrade path. This is what this patch implements.

This follows ar71xx, lantiq and partially bcm53xx.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46945 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ipq806x/base-files/lib/upgrade/platform.sh