diff --git a/toolchain/build.sh b/toolchain/build.sh index c0a6bc6..4299243 100644 --- a/toolchain/build.sh +++ b/toolchain/build.sh @@ -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