2010-07-16 04:26:46 +00:00
|
|
|
DESCRIPTION = "A collection of utilities and DSOs to handle compiled objects."
|
|
|
|
HOMEPAGE = "https://fedorahosted.org/elfutils"
|
|
|
|
SECTION = "base"
|
|
|
|
LICENSE = "GPLv2 with exceptions"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3\
|
|
|
|
file://EXCEPTION;md5=570adcb0c1218ab57f2249c67d0ce417"
|
2011-03-05 19:49:00 +00:00
|
|
|
DEPENDS = "libtool bzip2 zlib"
|
2010-07-16 04:26:46 +00:00
|
|
|
|
2011-04-06 10:51:25 +00:00
|
|
|
PR = "r2"
|
2010-07-16 04:26:46 +00:00
|
|
|
|
|
|
|
SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/elfutils-${PV}.tar.bz2"
|
|
|
|
|
2010-12-08 04:06:29 +00:00
|
|
|
SRC_URI[md5sum] = "a0bed1130135f17ad27533b0034dba8d"
|
|
|
|
SRC_URI[sha256sum] = "8aebfa4a745db21cf5429c9541fe482729b62efc7e53e9110151b4169fe887da"
|
|
|
|
|
2010-07-16 04:26:46 +00:00
|
|
|
# pick the patch from debian
|
|
|
|
# http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.148-1.debian.tar.gz
|
|
|
|
|
|
|
|
SRC_URI += "\
|
|
|
|
file://redhat-portability.diff \
|
|
|
|
file://redhat-robustify.diff \
|
|
|
|
file://hppa_backend.diff \
|
|
|
|
file://arm_backend.diff \
|
|
|
|
file://mips_backend.diff \
|
|
|
|
file://m68k_backend.diff \
|
|
|
|
file://do-autoreconf.diff \
|
|
|
|
file://testsuite-ignore-elflint.diff \
|
|
|
|
file://elf_additions.diff \
|
2010-08-18 22:23:50 +00:00
|
|
|
file://elfutils-fsize.patch \
|
2011-04-06 10:51:25 +00:00
|
|
|
file://remove-unused.patch \
|
2010-07-16 04:26:46 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
# The buildsystem wants to generate 2 .h files from source using a binary it just built,
|
|
|
|
# which can not pass the cross compiling, so let's work around it by adding 2 .h files
|
|
|
|
# along with the do_configure_prepend()
|
|
|
|
|
|
|
|
SRC_URI += "\
|
|
|
|
file://i386_dis.h \
|
|
|
|
file://x86_64_dis.h \
|
|
|
|
"
|
|
|
|
|
|
|
|
inherit autotools
|
|
|
|
|
2010-07-23 15:13:45 +00:00
|
|
|
EXTRA_OECONF = "--program-prefix=eu-"
|
|
|
|
|
2010-07-16 04:26:46 +00:00
|
|
|
do_configure_prepend() {
|
|
|
|
sed -i 's:./i386_gendis:echo\ \#:g' ${S}/libcpu/Makefile.am
|
|
|
|
|
|
|
|
cp ${WORKDIR}/*dis.h ${S}/libcpu
|
|
|
|
}
|
|
|
|
|
2010-07-23 13:02:39 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
2010-07-23 15:13:45 +00:00
|
|
|
|
|
|
|
# Package utilities separately
|
2010-07-16 04:26:46 +00:00
|
|
|
PACKAGES =+ "${PN}-binutils"
|
|
|
|
FILES_${PN}-binutils = "\
|
2010-07-23 15:13:45 +00:00
|
|
|
${bindir}/eu-addr2line \
|
|
|
|
${bindir}/eu-ld \
|
|
|
|
${bindir}/eu-nm \
|
|
|
|
${bindir}/eu-readelf \
|
|
|
|
${bindir}/eu-size \
|
|
|
|
${bindir}/eu-strip"
|
2010-07-16 04:26:46 +00:00
|
|
|
# Fix library issues
|
|
|
|
FILES_${PN} =+ "${libdir}/*-${PV}.so"
|
|
|
|
|
|
|
|
# The elfutils package contains symlinks that trip up insane
|
|
|
|
INSANE_SKIP_elfutils = "1"
|