imx6: add platform_pre_upgrade for sysupgrade
authorRafał Miłecki <zajec5@gmail.com>
Tue, 15 Sep 2015 16:05:03 +0000 (16:05 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Tue, 15 Sep 2015 16:05:03 +0000 (16:05 +0000)
commit27b18cb0c281f0f83d9c209b5fec889f715a731d
tree5f99c42a531619e1708d4399c587bb1d5f196d8e
parentff44a50d1a1906447d7f0f7c2db40c2c5f7d8c35
imx6: 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>
SVN-Revision: 46944
target/linux/imx6/base-files/lib/upgrade/platform.sh