[openwrt/openwrt] uboot-envtools: replace use of platform_get_bootdev

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 25 18:16:19 PST 2024


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/fc865eb3ae0369a966490ec5e8a3991d4553eb40

commit fc865eb3ae0369a966490ec5e8a3991d4553eb40
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sun Feb 25 21:08:57 2024 +0000

    uboot-envtools: replace use of platform_get_bootdev
    
    Use new function fitblk_get_bootdev in /lib/upgrade/common.sh instead.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 package/boot/uboot-envtools/files/mediatek_filogic | 4 ++--
 package/boot/uboot-envtools/files/mediatek_mt7622  | 4 ++--
 package/boot/uboot-envtools/files/mediatek_mt7623  | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/package/boot/uboot-envtools/files/mediatek_filogic b/package/boot/uboot-envtools/files/mediatek_filogic
index fcab697d90..08d2bf782b 100644
--- a/package/boot/uboot-envtools/files/mediatek_filogic
+++ b/package/boot/uboot-envtools/files/mediatek_filogic
@@ -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
diff --git a/package/boot/uboot-envtools/files/mediatek_mt7622 b/package/boot/uboot-envtools/files/mediatek_mt7622
index b4b1698d3f..c8d3857484 100644
--- a/package/boot/uboot-envtools/files/mediatek_mt7622
+++ b/package/boot/uboot-envtools/files/mediatek_mt7622
@@ -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]*}"
diff --git a/package/boot/uboot-envtools/files/mediatek_mt7623 b/package/boot/uboot-envtools/files/mediatek_mt7623
index a676e98bd7..008aff5785 100644
--- a/package/boot/uboot-envtools/files/mediatek_mt7623
+++ b/package/boot/uboot-envtools/files/mediatek_mt7623
@@ -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)




More information about the lede-commits mailing list