2018-10-21 21:54:12 +02:00
|
|
|
VERSION="2.31.1"
|
2017-12-09 21:51:48 +01:00
|
|
|
SRCDIR="binutils-$VERSION"
|
2018-02-10 10:48:03 +01:00
|
|
|
TARBALL="binutils-$VERSION.tar.xz"
|
2017-12-09 21:51:48 +01:00
|
|
|
URL="http://ftp.gnu.org/gnu/binutils"
|
2018-10-21 21:54:12 +02:00
|
|
|
SHA256SUM="5d20086ecf5752cc7d9134246e9588fa201740d540f7eb84d795b1f7a93bca86"
|
2018-01-24 12:52:41 +01:00
|
|
|
DEPENDS=""
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
prepare() {
|
2018-10-21 21:54:12 +02:00
|
|
|
apply_patches
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2019-01-13 02:38:04 +01:00
|
|
|
local extra="$BINUTILS_EXTRACFG"
|
2018-10-19 13:02:06 +02:00
|
|
|
|
2018-02-16 23:22:04 +01:00
|
|
|
$1/configure --prefix="$TCDIR" --target="$TARGET" --disable-nls \
|
2018-05-19 00:31:01 +02:00
|
|
|
--with-sysroot="$TCDIR/$TARGET" --disable-multilib \
|
2018-10-21 20:01:47 +02:00
|
|
|
--enable-shared --enable-plugins --enable-relro \
|
|
|
|
--with-pic --enable-deterministic-archives \
|
2018-10-19 13:02:06 +02:00
|
|
|
--with-lib-path="$TCDIR/$TARGET/lib" $extra
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
make configure-host
|
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
make install
|
2019-02-08 00:24:54 +01:00
|
|
|
|
|
|
|
touch "$2/$PKGNAME.files"
|
|
|
|
cat > "$2/$PKGNAME.desc" <<_EOF
|
|
|
|
name $PKGNAME
|
|
|
|
_EOF
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "$URL" | grep -o ">binutils-[0-9.]*tar.xz<" | \
|
|
|
|
sed 's/>binutils-//g' | sed 's/.tar.xz<//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
2018-10-08 22:05:04 +02:00
|
|
|
}
|