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>
Mon, 3 Jan 2022 13:00:34 +0000 (14:00 +0100)
commit6292d1e354766bc85be83cd4c63e53d6f9ef7570
tree72b05bd06e918848827e91cd5b20eced1f9a06fa
parenta00854040d9a431c3b99ed427140f513f78db915
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>
(cherry picked from commit 30b168b9b8451d6165833cee75019ef7dbfd8a2e)
target/linux/bcm4908/base-files/lib/upgrade/platform.sh