2022-11-01 10:04:06 +00:00
|
|
|
# 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)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-11-01 10:04:06 +00:00
|
|
|
|
|
|
|
PKG_NAME="binutils-arm-none-eabi"
|
2024-01-09 23:30:50 +00:00
|
|
|
PKG_VERSION="$(get_pkg_version binutils)"
|
2022-11-01 10:04:06 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_URL=""
|
|
|
|
PKG_DEPENDS_HOST="toolchain:host"
|
|
|
|
PKG_LONGDESC="A GNU collection of binary utilities for ARM Cortex-R/M processors."
|
|
|
|
PKG_DEPENDS_UNPACK+=" binutils"
|
|
|
|
PKG_PATCH_DIRS+=" $(get_pkg_directory binutils)/patches"
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_HOST="--target=arm-none-eabi \
|
|
|
|
--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"
|
|
|
|
|
|
|
|
unpack() {
|
|
|
|
mkdir -p ${PKG_BUILD}
|
2024-01-11 01:20:47 +00:00
|
|
|
tar --strip-components=1 -xf ${SOURCES}/binutils/binutils-${PKG_VERSION}.tar.xz -C ${PKG_BUILD}
|
2022-11-01 10:04:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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 bfd install # fix parallel build with libctf requiring bfd
|
|
|
|
# override the makeinfo binary with true - this does not build the documentation
|
|
|
|
make MAKEINFO=true install
|
|
|
|
}
|