mediatek: filogic: reorder alphabetically
authorChukun Pan <amadeus@jmu.edu.cn>
Fri, 20 Sep 2024 15:10:26 +0000 (23:10 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 15 Oct 2024 20:36:16 +0000 (21:36 +0100)
Reorder scripts to keep alphabetical order.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
target/linux/mediatek/filogic/base-files/etc/board.d/01_leds
target/linux/mediatek/filogic/base-files/etc/board.d/02_network
target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
target/linux/mediatek/image/filogic.mk

index 1437a120f56ed575ccf58d591697fa4971fe566e..dad5c293dec3779e6fa1aff5bb0d28465d806367 100644 (file)
@@ -105,16 +105,16 @@ smartrg,sdg-8733a)
        ucidef_set_led_netdev "wan-orange" "WAN" "mdio-bus:08:orange:wan" "wan" "link_100 link_1000"
        ucidef_set_led_netdev "wan-white" "WAN" "mdio-bus:08:white:wan" "wan" "link_10000"
        ;;
-wavlink,wl-wn586x3)
-       ucidef_set_led_netdev "lan-1" "lan-1" "blue:lan-1" "lan1" "link tx rx"
-       ucidef_set_led_netdev "lan-2" "lan-2" "blue:lan-2" "lan2" "link tx rx"
-       ucidef_set_led_netdev "wan" "wan" "blue:wan" "eth1" "link tx rx"
-       ;;
 tplink,re6000xd)
        ucidef_set_led_netdev "lan-1" "lan-1" "blue:lan-0" "lan1" "link tx rx"
        ucidef_set_led_netdev "lan-2" "lan-2" "blue:lan-1" "lan2" "link tx rx"
        ucidef_set_led_netdev "eth1" "lan-3" "blue:lan-2" "eth1" "link tx rx"
        ;;
+wavlink,wl-wn586x3)
+       ucidef_set_led_netdev "lan-1" "lan-1" "blue:lan-1" "lan1" "link tx rx"
+       ucidef_set_led_netdev "lan-2" "lan-2" "blue:lan-2" "lan2" "link tx rx"
+       ucidef_set_led_netdev "wan" "wan" "blue:wan" "eth1" "link tx rx"
+       ;;
 xiaomi,mi-router-wr30u-stock|\
 xiaomi,mi-router-wr30u-ubootmod)
        ucidef_set_led_netdev "wan" "wan" "blue:wan" "wan" "link tx rx"
@@ -132,7 +132,7 @@ zyxel,ex5601-t0-ubootmod)
        ucidef_set_led_netdev "wan" "WAN" "green:inet" "eth1" "link tx rx"
        ucidef_set_led_netdev "wifi-24g" "WIFI-2.4G" "green:wifi24g" "phy0-ap0" "link tx rx"
        ucidef_set_led_netdev "wifi-5g" "WIFI-5G" "green:wifi5g" "phy1-ap0" "link tx rx"
-        ;;
+       ;;
 esac
 
 board_config_flush
index 40d1b504e34f39bf41951d68910c2ff9af0134b2..af5c4ceafee13113faae6c032ae05c4931fa53f5 100644 (file)
@@ -8,9 +8,6 @@ mediatek_setup_interfaces()
        local board="$1"
 
        case $board in
-       acelink,ew-7886cax)
-               ucidef_set_interface_lan "eth0" "dhcp"
-               ;;
        abt,asr3000|\
        cmcc,rax3000m|\
        h3c,magic-nx30-pro|\
@@ -18,6 +15,9 @@ mediatek_setup_interfaces()
        zbtlink,zbt-z8103ax)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" eth1
                ;;
+       acelink,ew-7886cax)
+               ucidef_set_interface_lan "eth0" "dhcp"
+               ;;
        acer,predator-w6)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 game" eth1
                ;;
@@ -36,10 +36,16 @@ mediatek_setup_interfaces()
        netcore,n60|\
        ruijie,rg-x60-pro|\
        unielec,u7981-01*|\
-       zbtlink,zbt-z8102ax)
+       zbtlink,zbt-z8102ax|\
+       zyxel,ex5601-t0-stock|\
+       zyxel,ex5601-t0-ubootmod)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" eth1
                ;;
-       asus,tuf-ax6000)
+       asus,tuf-ax6000|\
+       glinet,gl-mt6000|\
+       tplink,tl-xdr4288|\
+       tplink,tl-xdr6088|\
+       tplink,tl-xtr8488)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" eth1
                ;;
        bananapi,bpi-r3)
@@ -56,6 +62,13 @@ mediatek_setup_interfaces()
        comfast,cf-e393ax)
                ucidef_set_interfaces_lan_wan "lan1" eth1
                ;;
+       cudy,ap3000outdoor-v1|\
+       cudy,re3000-v1|\
+       netgear,wax220|\
+       ubnt,unifi-6-plus|\
+       zyxel,nwa50ax-pro)
+               ucidef_set_interface_lan "eth0"
+               ;;
        cudy,m3000-v1|\
        cudy,tr3000-v1|\
        glinet,gl-mt2500|\
@@ -69,12 +82,6 @@ mediatek_setup_interfaces()
        dlink,aquila-pro-ai-m30-a1)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" internet
                ;;
-       glinet,gl-mt6000|\
-       tplink,tl-xdr4288|\
-       tplink,tl-xdr6088|\
-       tplink,tl-xtr8488)
-               ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" eth1
-               ;;
        mediatek,mt7986a-rfb)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan6" "eth1 wan"
                ;;
@@ -87,13 +94,6 @@ mediatek_setup_interfaces()
        mercusys,mr90x-v1)
                ucidef_set_interfaces_lan_wan "lan0 lan1 lan2" eth1
                ;;
-       cudy,ap3000outdoor-v1|\
-       cudy,re3000-v1|\
-       netgear,wax220|\
-       ubnt,unifi-6-plus|\
-       zyxel,nwa50ax-pro)
-               ucidef_set_interface_lan "eth0"
-               ;;
        smartrg,sdg-8622|\
        smartrg,sdg-8632|\
        smartrg,sdg-8733a|\
@@ -115,10 +115,6 @@ mediatek_setup_interfaces()
        xiaomi,redmi-router-ax6000-ubootmod)
                ucidef_set_interfaces_lan_wan "lan2 lan3 lan4" wan
                ;;
-       zyxel,ex5601-t0-stock|\
-       zyxel,ex5601-t0-ubootmod)
-               ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" eth1
-               ;;
        *)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" wan
                ;;
index 429728392a1dbea7a095a438e10cfeb48036f9b5..edc045656639c2274c6f4a50dabea82a359413d6 100755 (executable)
@@ -131,13 +131,6 @@ platform_do_upgrade() {
                EMMC_ROOT_DEV="$(cmdline_get_var root)"
                emmc_do_upgrade "$1"
                ;;
-       xiaomi,mi-router-ax3000t|\
-       xiaomi,mi-router-wr30u-stock|\
-       xiaomi,redmi-router-ax6000-stock)
-               CI_KERN_UBIPART=ubi_kernel
-               CI_ROOT_UBIPART=ubi
-               nand_do_upgrade "$1"
-               ;;
        unielec,u7981-01*)
                local rootdev="$(cmdline_get_var root)"
                rootdev="${rootdev##*/}"
@@ -155,6 +148,13 @@ platform_do_upgrade() {
                        ;;
                esac
                ;;
+       xiaomi,mi-router-ax3000t|\
+       xiaomi,mi-router-wr30u-stock|\
+       xiaomi,redmi-router-ax6000-stock)
+               CI_KERN_UBIPART=ubi_kernel
+               CI_ROOT_UBIPART=ubi
+               nand_do_upgrade "$1"
+               ;;
        *)
                nand_do_upgrade "$1"
                ;;
index 3e10003e4c2b73ec5af7b3e9d07f95a1498d1e52..83f1336444d8c6288f7c084c3e87d38c6e6e697a 100644 (file)
@@ -83,6 +83,10 @@ define Build/append-gl-metadata
        }
 endef
 
+define Build/append-openwrt-one-eeprom
+       dd if=$(STAGING_DIR_IMAGE)/mt7981_eeprom_mt7976_dbdc.bin >> $@
+endef
+
 define Build/zyxel-nwa-fit-filogic
        $(TOPDIR)/scripts/mkits-zyxel-fit-filogic.sh \
                $@.its $@ "80 e1 ff ff ff ff ff ff ff ff"
@@ -1047,10 +1051,6 @@ define Device/openembed_som7981
 endef
 TARGET_DEVICES += openembed_som7981
 
-define Build/append-openwrt-one-eeprom
-        dd if=$(STAGING_DIR_IMAGE)/mt7981_eeprom_mt7976_dbdc.bin >> $@
-endef
-
 define Device/openwrt_one
   DEVICE_VENDOR := OpenWrt
   DEVICE_MODEL := One
@@ -1404,7 +1404,6 @@ define Device/yuncore_ax835
 endef
 TARGET_DEVICES += yuncore_ax835
 
-
 define Device/zbtlink_zbt-z8102ax
   DEVICE_VENDOR := Zbtlink
   DEVICE_MODEL := ZBT-Z8102AX