bcm4908: sysupgrade: refactor handling different firmware formats
authorRafał Miłecki <rafal@milecki.pl>
Mon, 29 Nov 2021 09:25:30 +0000 (10:25 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 2 Dec 2021 08:17:43 +0000 (09:17 +0100)
commit30b168b9b8451d6165833cee75019ef7dbfd8a2e
tree0f3c57003986f537dbd047540cc20cd09201d227
parent80041dea7094f46f9ef5402964c95b0a5dcd5f28
bcm4908: sysupgrade: refactor handling different firmware formats

This results in setting format specific data (format info, extract
commands) in a single function. It should help maintaining sysupgrade
code.

This change has been tested on Asus GT-AC5300 and Netgear R8000P.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/bcm4908/base-files/lib/upgrade/platform.sh