From 85de3447c34e205202e7c6611f531327514cf949 Mon Sep 17 00:00:00 2001 From: gl-luochongjun Date: Mon, 14 Nov 2022 11:52:07 +0800 Subject: [PATCH] support mt2500 --- .github/workflows/build-glinet.yml | 1 + build.sh | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/build-glinet.yml b/.github/workflows/build-glinet.yml index 5f3240e0..68b5d30d 100644 --- a/.github/workflows/build-glinet.yml +++ b/.github/workflows/build-glinet.yml @@ -14,6 +14,7 @@ on: - target_wlan_ap-gl-ax1800-5-4 - target_wlan_ap-gl-axt1800-5-4 - target_ipq40xx_gl-a1300 + - target_mt7981_gl-mt2500 ui: description: '是否包含官方UI (GL-A1300不支持)' diff --git a/build.sh b/build.sh index f41aed5d..2a2a1bcd 100755 --- a/build.sh +++ b/build.sh @@ -39,12 +39,16 @@ if [[ $profile == *5-4* ]]; then python3 setup.py -c configs/config-wlan-ap-5.4.yml elif [[ $profile == *a1300* ]]; then python3 setup.py -c configs/config-21.02.2.yml +elif [[ $profile == *mt7981* ]]; then + python3 setup.py -c configs/config-mt798x-7.6.6.1.yml else python3 setup.py -c configs/config-wlan-ap.yml fi if [[ $profile == *wlan_ap* ]]; then ln -s $base/gl-infra-builder/wlan-ap/openwrt ~/openwrt +elif [[ $profile == *mt7981* ]]; then + ln -s $base/gl-infra-builder/mt7981 ~/openwrt else ln -s $base/gl-infra-builder/openwrt-21.02/openwrt-21.02.2 ~/openwrt fi @@ -53,6 +57,8 @@ cd ~/openwrt if [[ $ui == true ]] && [[ $profile == *wlan_ap* ]]; then ./scripts/gen_config.py $profile glinet_depends custom +elif [[ $ui == true ]] && [[ $profile == *mt7981* ]]; then + ./scripts/gen_config.py $profile glinet_depends custom else ./scripts/gen_config.py $profile openwrt_common luci custom fi @@ -68,6 +74,8 @@ make defconfig if [[ $ui == true ]] && [[ $profile == *wlan_ap* ]]; then make -j$(expr $(nproc) + 1) GL_PKGDIR=$base/glinet/ipq60xx/ V=s +elif [[ $ui == true ]] && [[ $profile == *mt7981* ]]; then + make -j$(expr $(nproc) + 1) GL_PKGDIR=$base/glinet/mt7981/ V=s else make -j$(expr $(nproc) + 1) V=s fi