Skip to content

Commit 7deaf24

Browse files
committed
support mt3000
1 parent 85de344 commit 7deaf24

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/build-glinet.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ on:
1515
- target_wlan_ap-gl-axt1800-5-4
1616
- target_ipq40xx_gl-a1300
1717
- target_mt7981_gl-mt2500
18+
- target_mt7981_gl-mt3000
1819

1920
ui:
20-
description: '是否包含官方UI (GL-A1300不支持)'
21+
description: '是否包含官方UI'
2122
required: false
2223
type: boolean
2324

build.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ cd ~/openwrt
5656

5757

5858
if [[ $ui == true ]] && [[ $profile == *wlan_ap* ]]; then
59-
./scripts/gen_config.py $profile glinet_depends custom
59+
./scripts/gen_config.py $profile glinet_depends glinet_nas custom
6060
elif [[ $ui == true ]] && [[ $profile == *mt7981* ]]; then
61-
./scripts/gen_config.py $profile glinet_depends custom
61+
./scripts/gen_config.py $profile glinet_depends glinet_nas custom
62+
elif [[ $ui == true ]] && [[ $profile == *ipq40xx* ]]; then
63+
./scripts/gen_config.py $profile glinet_depends glinet_nas custom
6264
else
6365
./scripts/gen_config.py $profile openwrt_common luci custom
6466
fi
@@ -75,6 +77,11 @@ make defconfig
7577
if [[ $ui == true ]] && [[ $profile == *wlan_ap* ]]; then
7678
make -j$(expr $(nproc) + 1) GL_PKGDIR=$base/glinet/ipq60xx/ V=s
7779
elif [[ $ui == true ]] && [[ $profile == *mt7981* ]]; then
80+
if [[ $profile == *mt2500 ]]; then
81+
cp $base/glinet/pkg_config/gl_pkg_config_mt7981_mt2500.mk $base/glinet/mt7981/gl_pkg_config.mk
82+
else
83+
cp $base/glinet/pkg_config/gl_pkg_config_mt7981_mt3000.mk $base/glinet/mt7981/gl_pkg_config.mk
84+
fi
7885
make -j$(expr $(nproc) + 1) GL_PKGDIR=$base/glinet/mt7981/ V=s
7986
else
8087
make -j$(expr $(nproc) + 1) V=s

0 commit comments

Comments
 (0)