base-files: fwtool: Fix wrong checksum on combined-image with metadata
authorPetr Štetiar <ynezz@true.cz>
Fri, 9 Nov 2018 11:27:12 +0000 (12:27 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:48:15 +0000 (17:48 +0100)
commit63565bcf184874e39c83ce4b75b4cc5d72002314
tree6532f991adbbd80750a8e77c4b5139c410cd94b2
parent8786c8526d7faa1f1f65dff27c5fbfe83143cfd7
base-files: fwtool: Fix wrong checksum on combined-image with metadata

If I create following image:

define Device/engenius-m36
  IMAGE/sysupgrade.bin := combined-image | append-metadata
endef

Sysupgrade then errors out:

  Invalid image. Contents do not match checksum (image:cd285595eaf297370404ae0e2815ec1a calculated:2cf9a2286fb6b01af3ea189128017d44)
  Image check 'platform_check_image' failed.

By removing the metadata from the image I get combined-image checksum
working again and sysupgrade works.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
(backported from 41770add03ad77a0ce41ed424ad050238f7d9272)
package/base-files/files/lib/upgrade/fwtool.sh