mediatek: filogic: reorder alphabetically
authorChukun Pan <amadeus@jmu.edu.cn>
Mon, 6 Nov 2023 15:06:05 +0000 (23:06 +0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Sat, 25 Nov 2023 22:16:35 +0000 (23:16 +0100)
Reorder scripts and image recipes to keep alphabetical order.

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

index 3fb605d750203ff8c53b650794dcc1c8d631e19a..5153c156f65bdd2f264d05ce65e3124ea68472d6 100644 (file)
@@ -19,24 +19,27 @@ mediatek_setup_interfaces()
        asus,tuf-ax6000)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" eth1
                ;;
-       netgear,wax220|\
-       ubnt,unifi-6-plus|\
-       zyxel,nwa50ax-pro)
-               ucidef_set_interface_lan "eth0"
-               ;;
        bananapi,bpi-r3)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 sfp2" "eth1 wan"
                ;;
-       cudy,wr3000-v1)
-               ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
-               ;;
-       glinet,gl-mt3000)
-               ucidef_set_interfaces_lan_wan eth1 eth0
+       cetron,ct3003|\
+       cudy,wr3000-v1|\
+       jcg,q30-pro|\
+       qihoo,360t7)
+               ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" wan
                ;;
        cmcc,rax3000m|\
        h3c,magic-nx30-pro)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" eth1
                ;;
+       glinet,gl-mt3000)
+               ucidef_set_interfaces_lan_wan eth1 eth0
+               ;;
+       glinet,gl-mt6000|\
+       tplink,tl-xdr4288|\
+       tplink,tl-xdr6088)
+               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"
                ;;
@@ -49,15 +52,10 @@ mediatek_setup_interfaces()
        mercusys,mr90x-v1)
                ucidef_set_interfaces_lan_wan "lan0 lan1 lan2" eth1
                ;;
-       cetron,ct3003|\
-       jcg,q30-pro|\
-       qihoo,360t7)
-               ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" wan
-               ;;
-       glinet,gl-mt6000|\
-       tplink,tl-xdr4288|\
-       tplink,tl-xdr6088)
-               ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" eth1
+       netgear,wax220|\
+       ubnt,unifi-6-plus|\
+       zyxel,nwa50ax-pro)
+               ucidef_set_interface_lan "eth0"
                ;;
        tplink,tl-xdr6086)
                ucidef_set_interfaces_lan_wan "lan1 lan2" eth1
index 6e7f1a247c70eab17bfdcd4583313c1ff483daee..f4d99eb148f7edf15b1b7f77829e1023579a2ee1 100644 (file)
@@ -80,11 +80,6 @@ case "$board" in
                [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
                [ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 3 > /sys${DEVPATH}/macaddress
                ;;
-       ubnt,unifi-6-plus)
-               addr=$(mtd_get_mac_binary EEPROM 0x6)
-               [ "$PHYNBR" = "0" ] && echo "$addr" > /sys${DEVPATH}/macaddress
-               [ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
-               ;;
        qihoo,360t7)
                addr=$(mtd_get_mac_ascii factory lanMac)
                [ "$PHYNBR" = "0" ] && macaddr_add $addr 2 > /sys${DEVPATH}/macaddress
@@ -95,6 +90,11 @@ case "$board" in
        tplink,tl-xdr6088)
                [ "$PHYNBR" = "0" ] && get_mac_label > /sys${DEVPATH}/macaddress
                ;;
+       ubnt,unifi-6-plus)
+               addr=$(mtd_get_mac_binary EEPROM 0x6)
+               [ "$PHYNBR" = "0" ] && echo "$addr" > /sys${DEVPATH}/macaddress
+               [ "$PHYNBR" = "1" ] && macaddr_add $addr 1 > /sys${DEVPATH}/macaddress
+               ;;
        zbtlink,zbt-z8102ax|\
        zyxel,ex5601-t0|\
        zyxel,ex5601-t0-ubootmod)
index c31946f0725af7065779c6445a75f4145b92239c..3c278d5faf2c45571e4cb91c67a035d2ebc14e73 100755 (executable)
@@ -102,15 +102,6 @@ platform_do_upgrade() {
                CI_ROOTPART="rootfs"
                emmc_do_upgrade "$1"
                ;;
-       mercusys,mr90x-v1)
-               CI_UBIPART="ubi0"
-               nand_do_upgrade "$1"
-               ;;
-       ubnt,unifi-6-plus)
-               CI_KERNPART="kernel0"
-               EMMC_ROOT_DEV="$(cmdline_get_var root)"
-               emmc_do_upgrade "$1"
-               ;;
        h3c,magic-nx30-pro|\
        jcg,q30-pro|\
        mediatek,mt7981-rfb|\
@@ -123,6 +114,15 @@ platform_do_upgrade() {
                CI_KERNPART="fit"
                nand_do_upgrade "$1"
                ;;
+       mercusys,mr90x-v1)
+               CI_UBIPART="ubi0"
+               nand_do_upgrade "$1"
+               ;;
+       ubnt,unifi-6-plus)
+               CI_KERNPART="kernel0"
+               EMMC_ROOT_DEV="$(cmdline_get_var root)"
+               emmc_do_upgrade "$1"
+               ;;
        xiaomi,mi-router-wr30u-stock|\
        xiaomi,redmi-router-ax6000-stock)
                CI_KERN_UBIPART=ubi_kernel
index 898155d290dd8c066ce2e155db9c1bce89a3a81b..4886db11419e503a71994e116370f157fc2ac507 100644 (file)
@@ -105,6 +105,21 @@ define Build/cetron-header
        rm $@.tmp
 endef
 
+define Device/acer_predator-w6
+  DEVICE_VENDOR := Acer
+  DEVICE_MODEL := Predator W6
+  DEVICE_DTS := mt7986a-acer-predator-w6
+  DEVICE_DTS_DIR := ../dts
+  DEVICE_DTS_LOADADDR := 0x47000000
+  DEVICE_PACKAGES := kmod-usb3 kmod-mt7986-firmware kmod-mt7916-firmware mt7986-wo-firmware e2fsprogs f2fsck mkf2fs
+  IMAGES := sysupgrade.bin
+  KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
+  KERNEL_INITRAMFS := kernel-bin | lzma | \
+       fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
+  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
+endef
+TARGET_DEVICES += acer_predator-w6
+
 define Device/asus_tuf-ax4200
   DEVICE_VENDOR := ASUS
   DEVICE_MODEL := TUF-AX4200
@@ -137,21 +152,6 @@ define Device/asus_tuf-ax6000
 endef
 TARGET_DEVICES += asus_tuf-ax6000
 
-define Device/acer_predator-w6
-  DEVICE_VENDOR := Acer
-  DEVICE_MODEL := Predator W6
-  DEVICE_DTS := mt7986a-acer-predator-w6
-  DEVICE_DTS_DIR := ../dts
-  DEVICE_DTS_LOADADDR := 0x47000000
-  DEVICE_PACKAGES := kmod-usb3 kmod-mt7986-firmware kmod-mt7916-firmware mt7986-wo-firmware e2fsprogs f2fsck mkf2fs
-  IMAGES := sysupgrade.bin
-  KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
-  KERNEL_INITRAMFS := kernel-bin | lzma | \
-       fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
-  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
-endef
-TARGET_DEVICES += acer_predator-w6
-
 define Device/bananapi_bpi-r3
   DEVICE_VENDOR := Bananapi
   DEVICE_MODEL := BPi-R3
@@ -354,24 +354,6 @@ define Device/jcg_q30-pro
 endef
 TARGET_DEVICES += jcg_q30-pro
 
-define Device/netgear_wax220
-  DEVICE_VENDOR := NETGEAR
-  DEVICE_MODEL := WAX220
-  DEVICE_DTS := mt7986b-netgear-wax220
-  DEVICE_DTS_DIR := ../dts
-  NETGEAR_ENC_MODEL := WAX220
-  NETGEAR_ENC_REGION := US
-  DEVICE_PACKAGES := kmod-mt7986-firmware mt7986-wo-firmware
-  KERNEL_INITRAMFS_SUFFIX := -recovery.itb
-  IMAGE_SIZE := 32768k
-  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
-  IMAGES += factory.img
-  # Padding to 10M seems to be required by OEM web interface
-  IMAGE/factory.img := sysupgrade-tar | \
-         pad-to 10M | check-size | netgear-encrypted-factory
-endef
-TARGET_DEVICES += netgear_wax220
-
 define Device/mediatek_mt7981-rfb
   DEVICE_VENDOR := MediaTek
   DEVICE_MODEL := MT7981 rfb
@@ -543,6 +525,24 @@ define Device/mercusys_mr90x-v1
 endef
 TARGET_DEVICES += mercusys_mr90x-v1
 
+define Device/netgear_wax220
+  DEVICE_VENDOR := NETGEAR
+  DEVICE_MODEL := WAX220
+  DEVICE_DTS := mt7986b-netgear-wax220
+  DEVICE_DTS_DIR := ../dts
+  NETGEAR_ENC_MODEL := WAX220
+  NETGEAR_ENC_REGION := US
+  DEVICE_PACKAGES := kmod-mt7986-firmware mt7986-wo-firmware
+  KERNEL_INITRAMFS_SUFFIX := -recovery.itb
+  IMAGE_SIZE := 32768k
+  IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
+  IMAGES += factory.img
+  # Padding to 10M seems to be required by OEM web interface
+  IMAGE/factory.img := sysupgrade-tar | \
+         pad-to 10M | check-size | netgear-encrypted-factory
+endef
+TARGET_DEVICES += netgear_wax220
+
 define Device/qihoo_360t7
   DEVICE_VENDOR := Qihoo
   DEVICE_MODEL := 360T7