[gcc-cross] Fix cross-compilation tool chain to openEuler-22.03-LTS-SP3.

This commit is contained in:
郑晨卉 2023-11-30 14:55:01 +08:00
parent ab795815ac
commit e15d8190df
2 changed files with 15 additions and 8 deletions

View File

@ -5,6 +5,7 @@ readonly LIB_PATH="$PWD/../open_source"
source $PWD/config.xml source $PWD/config.xml
build_rpmdir=`rpm --eval "%{_builddir}"` build_rpmdir=`rpm --eval "%{_builddir}"`
src_rpmdir=`rpm --eval "%{_sourcedir}"` src_rpmdir=`rpm --eval "%{_sourcedir}"`
SRC_BRANCH="openEuler-22.03-LTS-SP3"
#judge the open_source #judge the open_source
@ -33,25 +34,25 @@ function do_patch() {
fi fi
popd popd
} }
echo "Download $GCC" && git clone -b openEuler-22.03-LTS-Next https://gitee.com/src-openeuler/gcc.git echo "Download $GCC" && git clone -b $SRC_BRANCH https://gitee.com/src-openeuler/gcc.git
do_patch $GCC do_patch $GCC
echo "Download $GLIBC" && git clone -b openEuler-22.03-LTS-Next https://gitee.com/src-openeuler/glibc.git echo "Download $GLIBC" && git clone -b $SRC_BRANCH https://gitee.com/src-openeuler/glibc.git
do_patch $GLIBC do_patch $GLIBC
echo "Download $BINUTILS" && git clone -b openEuler-22.03-LTS-Next https://gitee.com/src-openeuler/binutils.git echo "Download $BINUTILS" && git clone -b $SRC_BRANCH https://gitee.com/src-openeuler/binutils.git
do_patch $BINUTILS do_patch $BINUTILS
echo "Download $GMP" && git clone -b openEuler-22.03-LTS-Next https://gitee.com/src-openeuler/gmp.git echo "Download $GMP" && git clone -b $SRC_BRANCH https://gitee.com/src-openeuler/gmp.git
do_patch $GMP do_patch $GMP
echo "Download $MPFR" && git clone -b openEuler-22.03-LTS-Next https://gitee.com/src-openeuler/mpfr.git echo "Download $MPFR" && git clone -b $SRC_BRANCH https://gitee.com/src-openeuler/mpfr.git
do_patch $MPFR do_patch $MPFR
echo "Download $MPC" && git clone -b openEuler-22.03-LTS-Next https://gitee.com/src-openeuler/libmpc.git echo "Download $MPC" && git clone -b $SRC_BRANCH https://gitee.com/src-openeuler/libmpc.git
do_patch $MPC do_patch $MPC
echo "Download $ISL" && git clone -b openEuler-22.03-LTS-Next https://gitee.com/src-openeuler/isl.git echo "Download $ISL" && git clone -b $SRC_BRANCH https://gitee.com/src-openeuler/isl.git
do_patch $ISL do_patch $ISL
echo "Download $LINUX_KERNEL" && git clone -b 5.10.0-60.16.0 https://gitee.com/openeuler/kernel.git --depth 1 echo "Download $LINUX_KERNEL" && git clone -b 5.10.0-60.16.0 https://gitee.com/openeuler/kernel.git --depth 1

View File

@ -1,7 +1,7 @@
Summary: C/C++ Cross Compiler Toolchain Summary: C/C++ Cross Compiler Toolchain
Name: gcc-cross Name: gcc-cross
Version: 1.0 Version: 1.0
Release: 5 Release: 6
# libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have # libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have
# GCC Runtime Exception. # GCC Runtime Exception.
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
@ -42,6 +42,12 @@ cp %{_builddir}/output/gcc_arm32le/gcc_arm32le.tar.gz %{buildroot}/tmp
%attr(755, root, root) /tmp/gcc_arm32le.tar.gz %attr(755, root, root) /tmp/gcc_arm32le.tar.gz
%changelog %changelog
* Thu Nov 30 2023 zhengchenhui <zhengchenhui1@huawei.com> - 1.0-6
-Type:Fix
-ID:NA
-SUG:NA
-DESC: Fix cross-compilation tool chain to openEuler-22.03-LTS-SP3
* Tue Apr 25 2023 dingguangya <dingguangya1@huawei.com> - 1.0-5 * Tue Apr 25 2023 dingguangya <dingguangya1@huawei.com> - 1.0-5
-Type:Fix -Type:Fix
-ID:NA -ID:NA