!274 add ppc64le support
From: @peng_zou Reviewed-by: @eastb233 Signed-off-by: @eastb233
This commit is contained in:
commit
83e395e59b
@ -1,7 +1,7 @@
|
|||||||
Summary: Binary utilities
|
Summary: Binary utilities
|
||||||
Name: binutils
|
Name: binutils
|
||||||
Version: 2.37
|
Version: 2.37
|
||||||
Release: 26
|
Release: 27
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://sourceware.org/binutils
|
URL: https://sourceware.org/binutils
|
||||||
|
|
||||||
@ -199,12 +199,12 @@ touch */configure
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
CARGS=
|
CARGS=
|
||||||
case %{_target_platform} in i?86*|arm*|aarch64*|riscv64*|loongarch64*)
|
case %{_target_platform} in i?86*|arm*|aarch64*|riscv64*|loongarch64*|ppc64le*)
|
||||||
CARGS="$CARGS --enable-64-bit-bfd"
|
CARGS="$CARGS --enable-64-bit-bfd"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case %{_target_platform} in x86_64*|i?86*|aarch64*|riscv64*|loongarch64*)
|
case %{_target_platform} in x86_64*|i?86*|aarch64*|riscv64*|loongarch64*|ppc64le*)
|
||||||
CARGS="$CARGS --enable-targets=x86_64-pep --enable-relro=yes"
|
CARGS="$CARGS --enable-targets=x86_64-pep --enable-relro=yes"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -372,6 +372,24 @@ INPUT ( %{_libdir}/libopcodes.a -lbfd )
|
|||||||
EOF
|
EOF
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%ifarch ppc64le
|
||||||
|
tee %{buildroot}%{_libdir}/libbfd.so <<EOF
|
||||||
|
/* GNU ld script */
|
||||||
|
|
||||||
|
OUTPUT_FORMAT(elf64-littleppc64le)
|
||||||
|
|
||||||
|
INPUT ( %{_libdir}/libbfd.a -liberty -lz -ldl )
|
||||||
|
EOF
|
||||||
|
|
||||||
|
tee %{buildroot}%{_libdir}/libopcodes.so <<EOF
|
||||||
|
/* GNU ld script */
|
||||||
|
|
||||||
|
OUTPUT_FORMAT(elf64-littleppc64le)
|
||||||
|
|
||||||
|
INPUT ( %{_libdir}/libopcodes.a -lbfd )
|
||||||
|
EOF
|
||||||
|
%endif
|
||||||
|
|
||||||
rm -f %{buildroot}%{_infodir}/dir
|
rm -f %{buildroot}%{_infodir}/dir
|
||||||
rm -rf %{buildroot}%{_prefix}/%{_target_platform}
|
rm -rf %{buildroot}%{_prefix}/%{_target_platform}
|
||||||
|
|
||||||
@ -447,6 +465,9 @@ fi
|
|||||||
%{_infodir}/bfd*info*
|
%{_infodir}/bfd*info*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 21 2024 peng.zou <peng.zou@shingroup.cn> - 2.37-27
|
||||||
|
- add ppc64le support
|
||||||
|
|
||||||
* Fri Mar 08 2024 eastb233 <xiezhiheng@huawei.com> - 2.37-26
|
* Fri Mar 08 2024 eastb233 <xiezhiheng@huawei.com> - 2.37-26
|
||||||
- Support AArch64 SME
|
- Support AArch64 SME
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user