uboot-envtools: replace use of platform_get_bootdev
authorDaniel Golle <daniel@makrotopia.org>
Sun, 25 Feb 2024 21:08:57 +0000 (21:08 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 26 Feb 2024 01:29:22 +0000 (01:29 +0000)
Use new function fitblk_get_bootdev in /lib/upgrade/common.sh instead.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/boot/uboot-envtools/files/mediatek_filogic
package/boot/uboot-envtools/files/mediatek_mt7622
package/boot/uboot-envtools/files/mediatek_mt7623

index fcab697d904b5cfa0b058d8cd95c73c2e9f7628c..08d2bf782bdb1fafc819b563247ae1283363938e 100644 (file)
@@ -39,9 +39,9 @@ asus,rt-ax59u)
 bananapi,bpi-r3|\
 bananapi,bpi-r3-mini|\
 bananapi,bpi-r4)
-       . /lib/upgrade/platform.sh
+       . /lib/upgrade/common.sh
 
-       bootdev="$(platform_get_bootdev)"
+       bootdev="$(fitblk_get_bootdev)"
        case "$bootdev" in
        ubi*)
                ubootenv_add_ubi_default
index b4b1698d3fddde0d3de177bbbca2a346a95c8b96..c8d385748449f3e1096f2d2e012febfb04ed8461 100644 (file)
@@ -35,8 +35,8 @@ linksys,e8450-ubi)
        ubootenv_add_ubi_default
        ;;
 bananapi,bpi-r64)
-       . /lib/upgrade/platform.sh
-       bootdev="$(platform_get_bootdev)"
+       . /lib/upgrade/common.sh
+       bootdev="$(fitblk_get_bootdev)"
        case "$bootdev" in
        mmc*)
                ubootenv_add_mmc_default "${bootdev%p[0-9]*}"
index a676e98bd79819eaff29dc0ebf2c930fc533c1c4..008aff57853c6de1c8e14c28f0bb64968d1f603f 100644 (file)
@@ -13,8 +13,8 @@ board=$(board_name)
 
 case "$board" in
 bananapi,bpi-r2)
-       . /lib/upgrade/platform.sh
-       bootdev="$(platform_get_bootdev)"
+       . /lib/upgrade/common.sh
+       bootdev="$(fitblk_get_bootdev)"
        ubootenv_add_uci_config "/dev/${bootdev%p[0-9]*}p1" "0xb0000" "0x10000" "0x10000" "1"
        ;;
 unielec,u7623-02)