更新 toolchain/build.sh
Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
parent
3f0604880b
commit
f91b1330a9
@ -14,6 +14,29 @@ cd openwrt
|
|||||||
# gcc15 patches
|
# gcc15 patches
|
||||||
curl -s $Github/gcc-15/202-toolchain-gcc-add-support-for-GCC-15.patch | patch -p1
|
curl -s $Github/gcc-15/202-toolchain-gcc-add-support-for-GCC-15.patch | patch -p1
|
||||||
|
|
||||||
|
# fix gcc14 and gcc15
|
||||||
|
if [ "$USE_GCC14" = y ] || [ "$USE_GCC15" = y ]; then
|
||||||
|
# 如果是 GCC 14 或 GCC 15,则替换并克隆修复后的 linux-atm
|
||||||
|
echo "Detected GCC 14 or 15. Replacing linux-atm with a fixed version..."
|
||||||
|
|
||||||
|
# 移除原有的 linux-atm 软件包
|
||||||
|
rm -rf package/network/utils/linux-atm
|
||||||
|
|
||||||
|
# 从 GitHub 克隆修复后的 linux-atm 软件包
|
||||||
|
git clone https://github.com/sbwml/package_network_utils_linux-atm package/network/utils/linux-atm
|
||||||
|
|
||||||
|
# 检查是否克隆成功
|
||||||
|
if [ -d "package/network/utils/linux-atm" ]; then
|
||||||
|
echo "linux-atm has been successfully replaced for GCC 14/15 compatibility."
|
||||||
|
else
|
||||||
|
echo "Failed to clone the fixed linux-atm package. Please check your network or the repository URL."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# 如果不是 GCC 14 或 GCC 15,则什么都不做
|
||||||
|
echo "GCC 14 or 15 not enabled. Skipping linux-atm replacement."
|
||||||
|
fi
|
||||||
|
|
||||||
# fix gcc-15
|
# fix gcc-15
|
||||||
if [ "$USE_GCC15" = y ]; then
|
if [ "$USE_GCC15" = y ]; then
|
||||||
# Mbedtls
|
# Mbedtls
|
||||||
|
Loading…
Reference in New Issue
Block a user