Skip to content

Commit

Permalink
support mt2500
Browse files Browse the repository at this point in the history
  • Loading branch information
luochongjun committed Nov 14, 2022
1 parent e04cbd4 commit 85de344
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-glinet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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不支持)'
Expand Down
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 85de344

Please sign in to comment.