更新 Mediatek.sh
Signed-off-by: zhao <zj18139624826@gmail.com>
This commit is contained in:
parent
2ed4b6867c
commit
a637aea046
15
Mediatek.sh
15
Mediatek.sh
@ -12,6 +12,11 @@ export RES='\e[0m'
|
|||||||
# GitHub 变量
|
# GitHub 变量
|
||||||
export github="github.com"
|
export github="github.com"
|
||||||
|
|
||||||
|
# $CURL_BAR
|
||||||
|
if curl --help | grep progress-bar >/dev/null 2>&1; then
|
||||||
|
CURL_BAR="--progress-bar";
|
||||||
|
fi
|
||||||
|
|
||||||
# 分组函数(GitHub Actions 支持)
|
# 分组函数(GitHub Actions 支持)
|
||||||
GROUP=
|
GROUP=
|
||||||
group() {
|
group() {
|
||||||
@ -67,6 +72,16 @@ elif [ "$platform" = "Mediatek_mt7986" ]; then
|
|||||||
fi
|
fi
|
||||||
endgroup
|
endgroup
|
||||||
|
|
||||||
|
# 加载缓存
|
||||||
|
group "加载缓存"
|
||||||
|
curl -L https://$github/oppen321/openwrt_caches/releases/download/OpenWrt_Toolchain_Cache/toolchain_gcc8_mediatek.tar.zst -o toolchain.tar.zst $CURL_BAR
|
||||||
|
tar -I "zstd" -xf toolchain.tar.zst
|
||||||
|
rm -f toolchain.tar.zst
|
||||||
|
mkdir bin
|
||||||
|
find ./staging_dir/ -name '*' -exec touch {} \; >/dev/null 2>&1
|
||||||
|
find ./tmp/ -name '*' -exec touch {} \; >/dev/null 2>&1
|
||||||
|
endgroup
|
||||||
|
|
||||||
# 生成默认配置
|
# 生成默认配置
|
||||||
group "生成默认配置"
|
group "生成默认配置"
|
||||||
make defconfig
|
make defconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user