mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
binutils: build libiberty for target
Libiberty is needed by perf to demangle symbols. Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
032cf5a44b
commit
088e6a765e
@ -24,6 +24,7 @@ PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.gnu.org/software/binutils/"
|
||||
PKG_URL="http://ftpmirror.gnu.org/binutils/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_HOST="ccache:host bison:host flex:host linux:host"
|
||||
PKG_DEPENDS_TARGET="toolchain binutils:host"
|
||||
PKG_SECTION="toolchain/devel"
|
||||
PKG_SHORTDESC="binutils: A GNU collection of binary utilities"
|
||||
PKG_LONGDESC="The GNU binutils are utilities of use when dealing with object files. the packages includes ld - the GNU linker, as - the GNU assembler, addr2line - converts addresses into filenames and line numbers, ar - a utility for creating, modifying and extracting from archives, c++filt - filter to demangle encoded C++ symbols, gprof - displays profiling information, nlmconv - converts object code into an NLM, nm - lists symbols from object files, objcopy - Copys and translates object files, objdump - displays information from object files, ranlib - generates an index to the contents of an archive, readelf - displays information from any ELF format object file, size - lists the section sizes of an object or archive file, strings - lists printable strings from files, strip - discards symbols as well as windres - a compiler for Windows resource files."
|
||||
@ -44,6 +45,21 @@ PKG_CONFIGURE_OPTS_HOST="--target=$TARGET_NAME \
|
||||
--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 \
|
||||
--without-ppl \
|
||||
--without-cloog \
|
||||
--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
|
||||
@ -60,3 +76,13 @@ makeinstall_host() {
|
||||
cp -v ../include/libiberty.h $SYSROOT_PREFIX/usr/include
|
||||
make install
|
||||
}
|
||||
|
||||
make_target() {
|
||||
make configure-host
|
||||
make -C libiberty libiberty.a
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
mkdir -p $SYSROOT_PREFIX/usr/lib
|
||||
cp libiberty/libiberty.a $SYSROOT_PREFIX/usr/lib
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user