2022-03-23 18:41:02 +08:00
|
|
|
Summary: C/C++ Cross Compiler Toolchain
|
|
|
|
|
Name: gcc-cross
|
|
|
|
|
Version: 1.0
|
|
|
|
|
Release: 0
|
|
|
|
|
# libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have
|
|
|
|
|
# GCC Runtime Exception.
|
|
|
|
|
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
|
|
|
|
|
URL: http://gcc.gnu.org
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
BuildRequires: binutils
|
|
|
|
|
BuildRequires: gcc, gcc-c++, make, git, flex, bison, rpm-build, automake, autoconf
|
|
|
|
|
BuildRequires: libtool, ncurses-devel, bc, openssl-devel, texinfo, rsync, chrpath
|
|
|
|
|
#ExclusiveArch: i386 x86-64
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
C/C++ Cross Compiler Toolchain
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
mkdir -p %{_builddir}/%{name}-%{version}
|
|
|
|
|
cd %{_builddir}/%{name}-%{version}
|
|
|
|
|
cp -r %{_sourcedir}/* ./
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
cd %{_builddir}/%{name}-%{version}
|
|
|
|
|
files=$(ls *.tar 2> /dev/null | wc -l)
|
|
|
|
|
if [ "$files" != 0 ]; then
|
|
|
|
|
ls *.tar | xargs -n1 tar xvf
|
|
|
|
|
fi
|
|
|
|
|
bash download.sh
|
2022-11-04 16:17:53 +08:00
|
|
|
bash build.sh openeuler_gcc_arm64le &
|
2022-03-23 18:41:02 +08:00
|
|
|
bash build.sh openeuler_gcc_arm32le
|
2022-11-04 16:17:53 +08:00
|
|
|
wait
|
2022-03-23 18:41:02 +08:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}/tmp
|
|
|
|
|
cp %{_builddir}/output/openeuler_gcc_arm64le/openeuler_gcc_arm64le.tar.gz %{buildroot}/tmp
|
|
|
|
|
cp %{_builddir}/output/openeuler_gcc_arm32le/openeuler_gcc_arm32le.tar.gz %{buildroot}/tmp
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%attr(755, root, root) /tmp/openeuler_gcc_arm64le.tar.gz
|
|
|
|
|
%attr(755, root, root) /tmp/openeuler_gcc_arm32le.tar.gz
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-11-04 16:17:53 +08:00
|
|
|
* Tue Nov 8 2022 dingguangya <dingguangya1@huawei.com>
|
|
|
|
|
- Type:Fix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Increase parallel compilation capability
|
|
|
|
|
|
2022-03-23 18:41:02 +08:00
|
|
|
* Wed Mar 23 2022 dingguangya <dingguangya1@huawei.com>
|
|
|
|
|
- Type:Init
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Init gcc-cross repository
|