mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
arm_none_eabi_*: update with latest versions and enable for all architectures
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
SUMMARY="Assembler, linker and binary tools for ARM microcontrollers"
|
||||
SUMMARY="Assembler, linker and binary tools for ARM microcontrollers and processors"
|
||||
DESCRIPTION="The GNU Binutils are a collection of binary tools.
|
||||
|
||||
The main ones are:
|
||||
@@ -9,7 +9,6 @@ But they also include:
|
||||
- addr2line - converts addresses into filenames and line numbers.
|
||||
- ar - a utility for creating, modifying and extracting of archives.
|
||||
- c++filt - filter to demangle encoded C++ symbols.
|
||||
- gold - a linker for ELF files.
|
||||
- nm - lists symbols from object files.
|
||||
- objcopy - copys and translates object files.
|
||||
- objdump - displays information from object files.
|
||||
@@ -19,21 +18,17 @@ But they also include:
|
||||
- strings - lists printable strings from files.
|
||||
- strip - discards symbols.
|
||||
|
||||
The tools of this package can be used for cross-builds to \
|
||||
$effectiveTargetMachineTriple."
|
||||
HOMEPAGE="https://www.gnu.org/software/binutils/"
|
||||
COPYRIGHT="1988-2022 Free Software Foundation, Inc."
|
||||
The tools of this package can be used for cross-builds to $effectiveTargetMachineTriple."
|
||||
HOMEPAGE="https://www.gnu.org/software/binutils"
|
||||
COPYRIGHT="1988-2023 Free Software Foundation, Inc."
|
||||
LICENSE="GNU GPL v3
|
||||
GNU LGPL v3"
|
||||
REVISION="1"
|
||||
binutilsVersion="2.36.1"
|
||||
srcGitRev="795d2053a07fdd2ce3c4ef6f649b0a27e2b085d1"
|
||||
SOURCE_URI="https://github.com/haiku/buildtools/archive/$srcGitRev.tar.gz"
|
||||
SOURCE_DIR="buildtools-$srcGitRev/binutils"
|
||||
CHECKSUM_SHA256="73244785a2496119548d1b47c4f899a641a910941df678d6bc6bae41c2ab6be1"
|
||||
SOURCE_FILENAME="binutils-$portVersion.tar.gz"
|
||||
SOURCE_URI="https://ftp.gnu.org/gnu/binutils/binutils-$portVersion.tar.xz"
|
||||
SOURCE_DIR="binutils-$portVersion"
|
||||
CHECKSUM_SHA256="0f8a4c272d7f17f369ded10a4aca28b8e304828e95526da482b0ccc4dfc9d8e1"
|
||||
|
||||
ARCHITECTURES="?all !x86_gcc2"
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
targetArch="arm-none-eabi"
|
||||
@@ -61,14 +56,16 @@ PROVIDES="
|
||||
lib:${targetU}_libopcodes_$binutilsVersion$secondaryArchSuffix = $portVersion compat >= 2.36
|
||||
lib:libctf_nobfd$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
lib:libctf$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
lib:libsframe$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
devel:libctf_nobfd$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
devel:libctf$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
devel:libsframe$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
binutils$secondaryArchSuffix
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libbfd_$binutilsVersion$secondaryArchSuffix
|
||||
lib:libopcodes_$binutilsVersion$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:find
|
||||
@@ -101,25 +98,16 @@ BUILD()
|
||||
{
|
||||
rm -rf $objectsDir
|
||||
|
||||
# Touch all *.info files, as newer texinfos don't like their format
|
||||
(cd $sourceDir; find . -name \*.info | xargs touch)
|
||||
|
||||
# Touch all *.y files, ensure they get generated; without this, the
|
||||
# PE targets would fail to link
|
||||
(cd $sourceDir; find . -name \*.y | xargs touch)
|
||||
|
||||
mkdir -p $objectsDir
|
||||
cd $objectsDir
|
||||
|
||||
CFLAGS=-O2 CXXFLAGS=-O2 runConfigure "$sourceDir/configure" \
|
||||
CFLAGS=-O2 CXXFLAGS=-O2 runConfigure --omit-dirs binDir \
|
||||
"$sourceDir/configure" \
|
||||
--exec-prefix=$installDir \
|
||||
--includedir=$includeDir/binutils \
|
||||
--docdir=$docDir --enable-host-shared --enable-largefile=yes \
|
||||
--disable-libtool-lock --disable-nls --enable-plugins --enable-64-bit-bfd \
|
||||
--enable-ld=default \
|
||||
--with-sysroot=$installDir \
|
||||
--docdir=$docDir --with-sysroot=$installDir \
|
||||
--enable-deterministic-archives --enable-shared=yes \
|
||||
--target=${targetArch}
|
||||
--disable-nls --bindir=$prefix/bin --target=${targetArch}
|
||||
|
||||
make $jobArgs LEXLIB=
|
||||
}
|
||||
@@ -130,10 +118,6 @@ INSTALL()
|
||||
|
||||
make install
|
||||
|
||||
# Remove the development libraries and headers. Nobody uses those anyway.
|
||||
rm $libDir/*.a $libDir/*.la
|
||||
rm -r $developDir/headers
|
||||
|
||||
# no info documentation
|
||||
rm -r $infoDir
|
||||
|
||||
@@ -141,7 +125,7 @@ INSTALL()
|
||||
|
||||
echo "Strip debug info"
|
||||
|
||||
strip --strip-debug $binDir/*
|
||||
strip --strip-debug $prefix/bin/*
|
||||
|
||||
### Symlinks ##############################################
|
||||
|
||||
@@ -150,7 +134,7 @@ INSTALL()
|
||||
# There are copies of a subset of the commands below installDir. We
|
||||
# overwrite those with symlinks to the ones in binDir.
|
||||
for file in $installDir/${targetArch}/bin/*; do
|
||||
symlinkRelative -sfn $binDir/${targetArch}-$(basename $file) $file
|
||||
symlinkRelative -sfn $prefix/bin/${targetArch}-$(basename $file) $file
|
||||
done
|
||||
|
||||
### Cleanup #################################################
|
||||
@@ -162,4 +146,7 @@ INSTALL()
|
||||
for cmd in dlltool nlmconv windmc windres; do
|
||||
rm -f man1/$cmd.1
|
||||
done
|
||||
|
||||
rm $libDir/*.la $libDir/*.a
|
||||
prepareInstalledDevelLibs libctf libsframe
|
||||
}
|
||||
Reference in New Issue
Block a user