tools/firmware-utils: mktplinkfw move build_fw() to lib
authorThibaut VARÈNE <hacks@slashdirt.org>
Tue, 3 Oct 2017 18:19:52 +0000 (20:19 +0200)
committerMathias Kresin <dev@kresin.me>
Fri, 6 Oct 2017 06:28:41 +0000 (08:28 +0200)
commit63d8bd52af9368e0145d036d851795c6e9edb940
treec3887f0e3ca92179288bbf5dd50ebe28c200f09d
parent9ed241083b90b6a9af656105a9a35cdb83aeb3f5
tools/firmware-utils: mktplinkfw move build_fw() to lib

This patch moves build_fw() to mktplinkfw-lib.c

The versions of mktplinkfw.c and mktplinkfw2.c had slight
differences in code flow, the version from mktplinkfw.c has been
preferred.

While it's expected that this change will not affect mktplinkfw2,
all use cases could not be tested and so this particular change
is committed separately.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
src/mktplinkfw-lib.c
src/mktplinkfw-lib.h
src/mktplinkfw.c
src/mktplinkfw2.c