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)
commit739e1e6f026787e7d587d520b90ef83042646f95
treeeb98ea5e1ad80424356fd92a3bb678f10151f07e
parent254030c54cffe6bc0188941e78ffd62922d9352c
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>
src/mktplinkfw.c