Files
LibreELEC.tv/packages/devel/binutils/package.mk
Rudi Heitbaum 92b6865d6e binutils: update to 2.44
release notes:
- https://sourceware.org/pipermail/binutils/2025-February/139195.html

In a change to our previous practice, in this release the
binutils-2.44.tar tarball does not contain the sources for the gold
linker.  This is because the gold linker is now deprecated and will
eventually be removed unless volunteers step forward and offer to
continue development and maintenance.

The gold sources can be found in the binutils-with-gold-2.44.tar
tarballs.  Going forward, odd numbered releases of the binutils (2.45,
2.47, etc) will just have the binutils.2.xx.tar tarballs, whilst even
numbered releases will have both the binutils-2.xx.tar and the
binutils-with-gold-2.xx.tar tarballs.  Eventually this will stop and
gold will be dropped altogether.
2025-02-04 07:29:25 +00:00

88 lines
3.1 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="binutils"
PKG_VERSION="2.44"
PKG_SHA256="67be9198476cc37436e2801de649f4ad80bf0d02430d86aff63c6b59b6e23987"
PKG_LICENSE="GPL"
PKG_SITE="https://www.gnu.org/software/binutils/"
PKG_URL="https://ftp.gnu.org/gnu/binutils/${PKG_NAME}-with-gold-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_HOST="ccache:host bison:host flex:host linux:host"
PKG_DEPENDS_TARGET="toolchain zlib binutils:host"
PKG_LONGDESC="A GNU collection of binary utilities."
PKG_CONFIGURE_OPTS_HOST="--target=${TARGET_NAME} \
--with-sysroot=${SYSROOT_PREFIX} \
--with-lib-path=${SYSROOT_PREFIX}/lib:${SYSROOT_PREFIX}/usr/lib \
--without-ppl \
--enable-static \
--without-cloog \
--disable-werror \
--disable-multilib \
--disable-libada \
--disable-libssp \
--enable-version-specific-runtime-libs \
--enable-plugins \
--enable-gold \
--enable-ld=default \
--enable-lto \
--disable-nls"
PKG_CONFIGURE_OPTS_TARGET="--target=${TARGET_NAME} \
--with-sysroot=${SYSROOT_PREFIX} \
--with-lib-path=${SYSROOT_PREFIX}/lib:${SYSROOT_PREFIX}/usr/lib \
--with-system-zlib \
--without-ppl \
--without-cloog \
--enable-static \
--disable-shared \
--disable-werror \
--disable-multilib \
--disable-libada \
--disable-libssp \
--disable-plugins \
--disable-gold \
--disable-ld \
--disable-lto \
--disable-nls"
pre_configure_host() {
unset CPPFLAGS
unset CFLAGS
unset CXXFLAGS
unset LDFLAGS
}
make_host() {
make configure-host
# override the makeinfo binary with true - this does not build the documentation
make MAKEINFO=true
}
makeinstall_host() {
cp -v ../include/libiberty.h ${SYSROOT_PREFIX}/usr/include
make -C libsframe install # bfd is reliant on libsframe
make -C bfd install # fix parallel build with libctf requiring bfd
# override the makeinfo binary with true - this does not build the documentation
make HELP2MAN=true MAKEINFO=true install
}
make_target() {
make configure-host
make -C libiberty
make -C bfd
make -C opcodes
make -C binutils strings
}
makeinstall_target() {
mkdir -p ${SYSROOT_PREFIX}/usr/lib
cp libiberty/libiberty.a ${SYSROOT_PREFIX}/usr/lib
make DESTDIR="${SYSROOT_PREFIX}" -C bfd install
make DESTDIR="${SYSROOT_PREFIX}" -C opcodes install
mkdir -p ${INSTALL}/usr/bin
cp binutils/strings ${INSTALL}/usr/bin
}