From a48e7d88c225c07deee54180abb1f02df2f318df Mon Sep 17 00:00:00 2001 From: OPPEN321 Date: Wed, 24 Sep 2025 20:03:43 +0800 Subject: [PATCH] Update build.sh --- build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.sh b/build.sh index 4fe6c73..89610fd 100644 --- a/build.sh +++ b/build.sh @@ -457,6 +457,17 @@ main() { # 环境设置 setup_build_environment setup_curl_progress + + # 根据架构设置工具链类型 + case "$architecture" in + rockchip) + toolchain_arch="aarch64_generic" + ;; + x86_64) + toolchain_arch="x86_64" + ;; + esac + export toolchain_arch print_success "初始化完成,开始构建 $architecture 架构的 $version 版本"