更新 toolchain/build.sh

Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
zhao 2025-03-23 01:40:55 +08:00
parent f91b1330a9
commit 8d490d33eb

View File

@ -14,6 +14,13 @@ cd openwrt
# gcc15 patches
curl -s $Github/gcc-15/202-toolchain-gcc-add-support-for-GCC-15.patch | patch -p1
# GCC Optimization level -O3
if [ "$model" = "OpenWrt_Rockchip_v24.10" ]; then
curl -s $Github/target-modify_for_rockchip.patch | patch -p1
elif [ "$model" = "OpenWrt_X86_64_v24.10" ]; then
curl -s $Github/target-modify_for_x86_64.patch | patch -p1
fi
# fix gcc14 and gcc15
if [ "$USE_GCC14" = y ] || [ "$USE_GCC15" = y ]; then
# 如果是 GCC 14 或 GCC 15则替换并克隆修复后的 linux-atm