2022-03-23 18:41:02 +08:00
|
|
|
Summary: C/C++ Cross Compiler Toolchain
|
|
|
|
|
Name: gcc-cross
|
|
|
|
|
Version: 1.0
|
2024-03-26 16:07:29 +08:00
|
|
|
Release: 6
|
2022-03-23 18:41:02 +08:00
|
|
|
# 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)
|
2023-08-07 23:05:26 +08:00
|
|
|
BuildRequires: binutils, gettext, gmp-devel, isl-devel, libmpc-devel, mpfr-devel, python3-sphinx, sharutils
|
|
|
|
|
BuildRequires: audit-libs-devel, gd-devel, libcap-devel, libpng-devel, libselinux-devel, libstdc++-static, systemtap-sdt-devel, valgrind
|
|
|
|
|
BuildRequires: jansson-devel
|
2024-03-26 16:07:29 +08:00
|
|
|
BuildRequires: gdb, native-turbo-tools, gcc, gcc-c++, make, git, flex, bison, rpm-build, automake, autoconf
|
2023-03-06 10:47:05 +08:00
|
|
|
BuildRequires: libtool, ncurses-devel, bc, zlib-devel, openssl-devel, texinfo, rsync, chrpath
|
2022-03-23 18:41:02 +08:00
|
|
|
#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-28 20:47:26 +08:00
|
|
|
bash build.sh gcc_arm64le &
|
|
|
|
|
bash build.sh gcc_arm32le
|
2022-11-04 16:17:53 +08:00
|
|
|
wait
|
2022-03-23 18:41:02 +08:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}/tmp
|
2022-11-28 20:47:26 +08:00
|
|
|
cp %{_builddir}/output/gcc_arm64le/gcc_arm64le.tar.gz %{buildroot}/tmp
|
|
|
|
|
cp %{_builddir}/output/gcc_arm32le/gcc_arm32le.tar.gz %{buildroot}/tmp
|
2022-03-23 18:41:02 +08:00
|
|
|
|
|
|
|
|
%files
|
2022-11-28 20:47:26 +08:00
|
|
|
%attr(755, root, root) /tmp/gcc_arm64le.tar.gz
|
|
|
|
|
%attr(755, root, root) /tmp/gcc_arm32le.tar.gz
|
2022-03-23 18:41:02 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2024-03-26 16:07:29 +08:00
|
|
|
* Mon Mar 11 2024 zhengchenhui <zhengchenhui1@huawei.com> - 1.0-6
|
|
|
|
|
-Type:Fix
|
|
|
|
|
-ID:NA
|
|
|
|
|
-SUG:NA
|
|
|
|
|
-DESC: Fix cross-compilation tool chain
|
|
|
|
|
|
2023-08-07 23:05:26 +08:00
|
|
|
* Mon Aug 07 2023 dingguangya <dingguangya1@huawei.com> - 1.0-5
|
|
|
|
|
-Type:Fix
|
|
|
|
|
-ID:NA
|
|
|
|
|
-SUG:NA
|
|
|
|
|
-DESC: Fix cross-compilation tool chain
|
|
|
|
|
|
2023-03-06 10:47:05 +08:00
|
|
|
* Mon Mar 06 2023 dingguangya <dingguangya1@huawei.com> - 1.0-4
|
|
|
|
|
-Type:Fix
|
|
|
|
|
-ID:NA
|
|
|
|
|
-SUG:NA
|
|
|
|
|
-DESC: Update cross-compilation tool chain
|
|
|
|
|
|
2022-11-28 20:47:26 +08:00
|
|
|
* Mon Nov 28 2022 dingguangya <dingguangya1@huawei.com> - 1.0-3
|
|
|
|
|
-Type:Fix
|
|
|
|
|
-ID:NA
|
|
|
|
|
-SUG:NA
|
|
|
|
|
-DESC: Fix the hard coding problem in the software package building process
|
|
|
|
|
|
2022-11-17 16:16:30 +08:00
|
|
|
* Thu Nov 17 2022 dingguangya <dingguangya1@huawei.com> - 1.0-2
|
|
|
|
|
-Type:Fix
|
|
|
|
|
-ID:NA
|
|
|
|
|
-SUG:NA
|
|
|
|
|
-DESC: Unified changelog/Release field format
|
|
|
|
|
|
|
|
|
|
* Tue Nov 8 2022 dingguangya <dingguangya1@huawei.com> - 1.0-1
|
2022-11-04 16:17:53 +08:00
|
|
|
- Type:Fix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Increase parallel compilation capability
|
|
|
|
|
|
2022-11-17 16:16:30 +08:00
|
|
|
* Wed Mar 23 2022 dingguangya <dingguangya1@huawei.com> - 1.0-0
|
2022-03-23 18:41:02 +08:00
|
|
|
- Type:Init
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: Init gcc-cross repository
|