ar71xx: sysupgrade: accept ath79 combined-image
authorTomasz Maciej Nowak <tomek_n@o2.pl>
Fri, 23 Aug 2019 13:50:48 +0000 (15:50 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 29 Sep 2019 09:30:50 +0000 (11:30 +0200)
commit6cdd518eb14a66dbd9b09c10b6467a48fe5cf470
tree5bb2f0f09f042284cce184434aa4e1588ea473ad
parentb5a70a3fcd3eb57e202fd0c9692a704620de6268
ar71xx: sysupgrade: accept ath79 combined-image

There is md5 sum of whole image embedded in combined-image header which
is checked on sysupgrade. The check will fail for ath79 images which
may have embedded metadata. This is because metadata are appended after
the combined image is created. To allow smooth transition from ar71xx to
ath79, strip metadata before calculating md5 sum for whole image.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
(cherry picked from commit 8b4109c2b4d60495d046157d1baca9b1cdbf8dc8)
target/linux/ar71xx/base-files/lib/upgrade/platform.sh