firmware-utils: tplink-safeloader: use revision field
authorSander Vanheule <sander@svanheule.net>
Wed, 1 Sep 2021 19:15:57 +0000 (21:15 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 9 Sep 2021 21:36:13 +0000 (23:36 +0200)
commitdf63619eeafac0a6b41c26102a7aa4a0dea9aa16
treeb0d9446555b85ae5d3ba48d8070a942f0fdfcff7
parent70c75965a97799b44871249c205bad48fea9a4ae
firmware-utils: tplink-safeloader: use revision field

The structured soft-version partition has a field which contains a
(source) revision number. Factory images used to include this, but
it was accidentaly removed during an earlier refactoring.

Include the source revision number again in the generated soft-version
partition. Additionaly, also show this revision number when printing
image info.

Fixes: 1a211af2cb3b ("firmware-utils: tplink-safeloader: refactor meta-partition generation")
Signed-off-by: Sander Vanheule <sander@svanheule.net>
tools/firmware-utils/Makefile
tools/firmware-utils/src/tplink-safeloader.c