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>
Sat, 31 Aug 2019 22:12:02 +0000 (00:12 +0200)
commit8b4109c2b4d60495d046157d1baca9b1cdbf8dc8
treee3e0384d46e1ec65e610f71ef5d0ff52573ca0d1
parent900330ff2f5cb568ff3631ebea2888956e2ed8c9
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>
target/linux/ar71xx/base-files/lib/upgrade/platform.sh