firmware-utils: tplink-safeloader: improve soft-version customisation

Some devices using the safeloader firmware format require a minimum or
specific version to be set in the soft-version metadata partition.
Currently only custom text values can be provided, but not all device
firmware support this format.

Modify the device info struct to allow for more well-defined types of
soft-version overwrites, and provide a few macros for easy value
initialisation. Requires all existing values to be updated to match the
new structure.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
[Adapt TL-WA1201-V2 entry too]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Sander Vanheule
2021-09-10 10:57:18 +02:00
committed by Hauke Mehrtens
parent 7d92bb0509
commit 8dba4741b3
2 changed files with 95 additions and 74 deletions

View File

@@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME := firmware-utils
PKG_RELEASE := 10
PKG_RELEASE := 11
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/kernel.mk