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"
|
2011-12-03 23:48:29 +00:00
|
|
|
LICENSE = "(GPL-2+ & Elfutils-Exception)"
|
2010-07-16 04:26:46 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3\
|
|
|
|
file://EXCEPTION;md5=570adcb0c1218ab57f2249c67d0ce417"
|
2012-08-30 05:27:22 +00:00
|
|
|
DEPENDS = "libtool bzip2 zlib virtual/libintl"
|
2010-07-16 04:26:46 +00:00
|
|
|
|
2013-03-15 13:27:27 +00:00
|
|
|
PR = "r11"
|
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 \
|
2011-04-01 03:52:54 +00:00
|
|
|
file://mempcpy.patch \
|
2011-12-29 22:14:39 +00:00
|
|
|
file://fix_for_gcc-4.7.patch \
|
|
|
|
file://dso-link-change.patch \
|
2013-03-12 03:58:58 +00:00
|
|
|
file://nm-Fix-size-passed-to-snprintf-for-invalid-sh_name-case.patch \
|
2013-03-15 13:27:27 +00:00
|
|
|
file://elfutils-ar-c-fix-num-passed-to-memset.patch \
|
2010-07-16 04:26:46 +00:00
|
|
|
"
|
2011-05-24 01:53:59 +00:00
|
|
|
# Only apply when building uclibc based target recipe
|
2012-08-30 05:27:22 +00:00
|
|
|
SRC_URI_append_libc-uclibc = " file://uclibc-support.patch"
|
2011-05-24 01:53:59 +00:00
|
|
|
|
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 \
|
|
|
|
"
|
2011-05-24 01:53:59 +00:00
|
|
|
inherit autotools gettext
|
2010-07-16 04:26:46 +00:00
|
|
|
|
2012-04-03 13:44:40 +00:00
|
|
|
EXTRA_OECONF = "--program-prefix=eu- --without-lzma"
|
2012-10-27 08:48:17 +00:00
|
|
|
EXTRA_OECONF_append_class-native = " --without-bzlib"
|
2012-08-30 05:27:22 +00:00
|
|
|
EXTRA_OECONF_append_libc-uclibc = " --enable-uclibc"
|
2010-07-23 15:13:45 +00:00
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2011-05-24 01:53:59 +00:00
|
|
|
# we can not build complete elfutils when using uclibc
|
|
|
|
# but some recipes e.g. gcc 4.5 depends on libelf so we
|
|
|
|
# build only libelf for uclibc case
|
|
|
|
|
|
|
|
EXTRA_OEMAKE_libc-uclibc = "-C libelf"
|
2012-10-27 08:48:17 +00:00
|
|
|
EXTRA_OEMAKE_class-native = ""
|
|
|
|
EXTRA_OEMAKE_class-nativesdk = ""
|
2011-04-01 03:52:54 +00:00
|
|
|
|
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
|
|
|
|
2012-06-05 12:47:02 +00:00
|
|
|
# Some packages have the version preceeding the .so instead properly
|
|
|
|
# versioned .so.<version>, so we need to reorder and repackage.
|
|
|
|
FILES_${PN} += "${libdir}/*-${PV}.so ${base_libdir}/*-${PV}.so"
|
|
|
|
FILES_SOLIBSDEV = "${libdir}/libasm.so ${libdir}/libdw.so ${libdir}/libelf.so"
|
|
|
|
|
|
|
|
# The package contains symlinks that trip up insane
|
2011-07-05 10:13:43 +00:00
|
|
|
INSANE_SKIP_${PN} = "dev-so"
|
2012-06-05 12:47:02 +00:00
|
|
|
|