Skip to content

Commit

Permalink
support mt3000
Browse files Browse the repository at this point in the history
  • Loading branch information
luochongjun committed Feb 2, 2023
1 parent 85de344 commit 7deaf24
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-glinet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ on:
- target_wlan_ap-gl-axt1800-5-4
- target_ipq40xx_gl-a1300
- target_mt7981_gl-mt2500
- target_mt7981_gl-mt3000

ui:
description: '是否包含官方UI (GL-A1300不支持)'
description: '是否包含官方UI'
required: false
type: boolean

Expand Down
11 changes: 9 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ cd ~/openwrt


if [[ $ui == true ]] && [[ $profile == *wlan_ap* ]]; then
./scripts/gen_config.py $profile glinet_depends custom
./scripts/gen_config.py $profile glinet_depends glinet_nas custom
elif [[ $ui == true ]] && [[ $profile == *mt7981* ]]; then
./scripts/gen_config.py $profile glinet_depends custom
./scripts/gen_config.py $profile glinet_depends glinet_nas custom
elif [[ $ui == true ]] && [[ $profile == *ipq40xx* ]]; then
./scripts/gen_config.py $profile glinet_depends glinet_nas custom
else
./scripts/gen_config.py $profile openwrt_common luci custom
fi
Expand All @@ -75,6 +77,11 @@ 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
if [[ $profile == *mt2500 ]]; then
cp $base/glinet/pkg_config/gl_pkg_config_mt7981_mt2500.mk $base/glinet/mt7981/gl_pkg_config.mk
else
cp $base/glinet/pkg_config/gl_pkg_config_mt7981_mt3000.mk $base/glinet/mt7981/gl_pkg_config.mk
fi
make -j$(expr $(nproc) + 1) GL_PKGDIR=$base/glinet/mt7981/ V=s
else
make -j$(expr $(nproc) + 1) V=s
Expand Down

0 comments on commit 7deaf24

Please sign in to comment.