firmware-utils/tplink-safeloader: refactor code for further board support
authorJo-Philipp Wich <jo@mein.io>
Wed, 24 Aug 2016 17:42:19 +0000 (19:42 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 20 Dec 2016 13:38:48 +0000 (14:38 +0100)
commitfff6443b5bf62f70b44ce5270129e8ecd7b9a25c
tree98b3eed496e94a28b3c011203f17ab934c25cb9f
parentd58e8a90769e2f65e26960555c972237a18068f5
firmware-utils/tplink-safeloader: refactor code for further board support

In order to make it easier to add new boards in the future, refactor the code
to describe the image layouts of supported boards in a struct array and alter
the image generation routines to figure out the sysupgrade partitions
automatically.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
tools/firmware-utils/src/tplink-safeloader.c