From 8d490d33ebf8a777007b81960b848300a0b209f6 Mon Sep 17 00:00:00 2001 From: zhao Date: Sun, 23 Mar 2025 01:40:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20toolchain/build.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- toolchain/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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