firmware-utils: jcgimage: add support for 4MiB+ images
authorDavide Fioravanti <pantanastyle@gmail.com>
Mon, 20 May 2019 02:43:17 +0000 (04:43 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 31 May 2019 08:30:03 +0000 (10:30 +0200)
commitd95dff162ae110e82674cc1511ef851be231b232
treea69f55840155d34d4dd8827645e5f1794f02e66e
parent1bbd524e8411c669d874ca48e0bb56e1e8acc121
firmware-utils: jcgimage: add support for 4MiB+ images

The first version of this script allowed just 4Mb factory images.
With this patch is possible to set the maximum size of the payload.

For an 8Mb flash, the corresponding maxsize is:
8 * 1024 * 1024 - 5 * 64 * 1024 = 8388608 - 327680 = 8060928

If the -m argument is not set, the default maximum size will be
used for backward compatibility.

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
tools/firmware-utils/src/jcgimage.c