octeon: determine sysupgrade-* directory for upgrade automatically
authorDonald Hoskins <grommish@gmail.com>
Sat, 15 Aug 2020 11:50:43 +0000 (13:50 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 16 Aug 2020 00:14:34 +0000 (02:14 +0200)
commit591767fc0152ffd02954e359e33f575271b9089e
treed17e69742f5eccb4b24854401775351d41766043
parentd43b963b3d1172fbe7e3f57f88da11e4d7e54c95
octeon: determine sysupgrade-* directory for upgrade automatically

So far, the sysupgrade-* folder used during upgrade in octeon was
hardcoded to contain the board name. Therefore, changing board name
or BOARD_NAME variable in image/Makefile might have broken upgrade.

Improve this by adding a step to determine the folder name via
a wildcard, as it is done for generic nand_upgrade_tar() in
lib/upgrade/nand.sh.

While this still does not remove the problem for existing devices
(which still have the old script), it will entirely remove the
issue on newly added devices on this platform.

Signed-off-by: Donald Hoskins <grommish@gmail.com>
[split into separate patch, add commit message, add return values]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/octeon/base-files/lib/upgrade/platform.sh