tools/firmware-utils: mktplinkfw regroup duplicate code
authorThibaut VARÈNE <hacks@slashdirt.org>
Tue, 3 Oct 2017 16:12:27 +0000 (18:12 +0200)
committerMathias Kresin <dev@kresin.me>
Fri, 6 Oct 2017 06:28:41 +0000 (08:28 +0200)
commit10324fcb3992cdf40db651ae6ad0b3cda670d81b
tree7fda55cadd19de594f361d0f37642336c1c883ae
parent10832c8e12da66b97c266d493b236ab2c804ea70
tools/firmware-utils: mktplinkfw regroup duplicate code

This patch carves out the duplicated code of mktplinfw.c and
mktplinkfw2.c and moves it to mktplinkfw-lib.c

This change is a semantic NOP (the code is unchanged).

To ensure compatibility with gcc-5.x and newer without changing
the code, -fgnu89-inline is added to the build flags for these
two binaries.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
tools/firmware-utils/Makefile
tools/firmware-utils/src/mktplinkfw-lib.c [new file with mode: 0644]
tools/firmware-utils/src/mktplinkfw-lib.h [new file with mode: 0644]
tools/firmware-utils/src/mktplinkfw.c
tools/firmware-utils/src/mktplinkfw2.c