From 2d29f2c54a97d913afad6b5222096af36be506dc Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:48:11 +0100 Subject: [PATCH] added additional target arm64-linux [release 2.39-2mamba;Thu Oct 06 2022] --- binutils.spec | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/binutils.spec b/binutils.spec index d9d3d31..bc5b76b 100644 --- a/binutils.spec +++ b/binutils.spec @@ -8,7 +8,7 @@ Name: binutils Version: 2.39 -Release: 1mamba +Release: 2mamba Summary: GNU Binary Utility Development Utilities Group: Development/Tools Vendor: openmamba @@ -32,6 +32,13 @@ Patch11: binutils-2.31.1-revert-PR-23161.patch Patch12: binutils-2.37-upstream_fix_ld_malfomed_archive.patch License: GPL ## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libelf-devel +BuildRequires: libfl-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +BuildRequires: libz-devel +BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: bison >= 2.5 Requires: libbinutils = %{version}-%{release} @@ -119,7 +126,7 @@ case %{target_cpu} in i*86 | athlon*) TARGETS="\ --enable-64bit-bfd \ ---enable-targets=x86_64-linux,powerpc-linux,powerpc64-linux,arm-linux,armelf-linux-eabi" +--enable-targets=x86_64-linux,powerpc-linux,powerpc64-linux,arm-linux,armelf-linux-eabi,arm64-linux" ;; ppc | powerpc) # disable shared build for cross platform binutils because it is a big-endian platform and complain about @@ -133,7 +140,12 @@ case %{target_cpu} in ;; arm) TARGETS="\ ---enable-targets=powerpc-linux,powerpc64-linux,i386-linux,x86_64-linux,arm-linux,armelf-linux-eabi" +--enable-targets=powerpc-linux,powerpc64-linux,i386-linux,x86_64-linux,arm-linux,armelf-linux-eabi,arm64-linux" +#--with-lib-path=%{_prefix}/%{_target_platform}/lib:%{_prefix}/%{_target_platform}/lib/be:%{_prefix}/%{_target_platform}/lib/soft-float:%{_prefix}/%{_target_platform}/lib/be/soft-float" + ;; + aarch64) + TARGETS="\ +--enable-targets=powerpc-linux,powerpc64-linux,i386-linux,x86_64-linux,arm-linux,armelf-linux-eabi,arm64-linux" #--with-lib-path=%{_prefix}/%{_target_platform}/lib:%{_prefix}/%{_target_platform}/lib/be:%{_prefix}/%{_target_platform}/lib/soft-float:%{_prefix}/%{_target_platform}/lib/be/soft-float" ;; avr) @@ -143,11 +155,11 @@ case %{target_cpu} in x86_64) TARGETS="\ --enable-64bit-bfd \ ---enable-targets=i386-linux,powerpc-linux,powerpc64-linux,arm-linux,armelf-linux-eabi,x86_64-pep" +--enable-targets=i386-linux,powerpc-linux,powerpc64-linux,arm-linux,armelf-linux-eabi,arm64-linux,x86_64-pep" ;; *) TARGETS="\ ---enable-targets=powerpc64-linux,i386-linux,x86_64-linux,arm-linux,armelf-linux-eabi" +--enable-targets=powerpc64-linux,i386-linux,x86_64-linux,arm-linux,armelf-linux-eabi,arm64-linux" ;; esac @@ -406,10 +418,8 @@ exit 0 %{_libdir}/libopcodes.*a %{_libdir}/libopcodes.so %{_libdir}/libctf-nobfd.a -%{_libdir}/libctf-nobfd.la %{_libdir}/libctf-nobfd.so %{_libdir}/libctf.a -%{_libdir}/libctf.la %{_libdir}/libctf.so %if "%gprof" == "1" %{_libdir}/gprofng/libgprofng.so @@ -430,6 +440,9 @@ exit 0 %endif %changelog +* Thu Oct 06 2022 Silvan Calarco 2.39-2mamba +- added additional target arm64-linux + * Mon Aug 08 2022 Automatic Build System 2.39-1mamba - automatic version update by autodist