ar71xx: sysupgrade: accept ath79 combined-image
authorTomasz Maciej Nowak <tomek_n@o2.pl>
Fri, 23 Aug 2019 13:50:48 +0000 (15:50 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Sun, 29 Sep 2019 16:40:47 +0000 (12:40 -0400)
commit6ad9d740e0ce619d1bd5e8c56691deff6c84f2e8
tree0b77cab5a8490f17fa730bc25562a45def1cef49
parent1429455c7070beeae2a817226fee88edead99e9b
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