imx: cortexa53: add 'gateworks,imx8m*' to sysupgrade board checks
authorTim Harvey <tharvey@gateworks.com>
Thu, 13 Feb 2025 18:36:09 +0000 (10:36 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 16 Feb 2025 15:46:51 +0000 (16:46 +0100)
The upstream device-tree files are now using 'gateworks' instead of 'gw'
for compatible. Add this pattern so that the newer boards support
sysupgrade.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Link: https://github.com/openwrt/openwrt/pull/17964
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/imx/cortexa53/base-files/lib/upgrade/platform.sh

index c59a69421af877a0ba72aaa86c285ae73463b2e4..f97b55f78941c0bc5aba30036281190518dcbef3 100755 (executable)
@@ -12,6 +12,7 @@ platform_check_image() {
        local board=$(board_name)
 
        case "$board" in
+       gateworks,imx8m*|\
        gw,imx8m*)
                return 0
                ;;
@@ -25,6 +26,7 @@ platform_do_upgrade() {
        local board=$(board_name)
 
        case "$board" in
+       gateworks,imx8m*|\
        gw,imx8m*)
                export_bootdevice && export_partdevice diskdev 0 || {
                        echo "Unable to find root device."
@@ -41,6 +43,7 @@ platform_copy_config() {
        local partdev
 
        case "$board" in
+       gateworks,imx8m*|\
        gw,imx8m*)
                export_partdevice partdev 1 && {
                        v "Storing $UPGRADE_BACKUP on /dev/$partdev..."