firmware-utils: bcm4908img: replace size with offset
authorRafał Miłecki <rafal@milecki.pl>
Mon, 5 Apr 2021 23:06:52 +0000 (01:06 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 8 Apr 2021 11:16:12 +0000 (13:16 +0200)
commitcbf8ac82c6e4aea62510ffe10dee85eb8a79e2fb
tree635ef7f41c31351178c68dfa31e3611ba0637d6e
parentd91054a521de18e36ea1ff63ad63170876444dce
firmware-utils: bcm4908img: replace size with offset

It's much easier to operate on BCM4908 image data with absolute offset
of each section stored. It doesn't require summing sizes over and over.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 5314cab729b743d3b8b08db4e01c3095017f4e68)
tools/firmware-utils/src/bcm4908img.c