firmware-utils: mktplinkfw: add rootfs offset for combined images
authorAlex Maclean <monkeh@monkeh.net>
Wed, 20 Jun 2018 13:56:19 +0000 (14:56 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 26 Jun 2018 05:03:57 +0000 (07:03 +0200)
commit0a2f21fa715bcf2e2975e32a1843a13fa088c640
tree45e9b015944a47a5d57d419d32480ded468ae099
parent34e22653ac18b6ac7fd368ca47625f665808067f
firmware-utils: mktplinkfw: add rootfs offset for combined images

Add an option (-O) to calculate rootfs offset for combined images.

This is needed for the TP-Link mtdsplit driver to locate the rootfs
when the start is not aligned to an erase block. This will be the
case for sysupgrade images produced by tplink-safeloader with upcoming
dynamic partition splitting.

Signed-off-by: Alex Maclean <monkeh@monkeh.net>
tools/firmware-utils/src/mktplinkfw.c