diff options
| author | Radu Moisan <radu.moisan@intel.com> | 2013-06-19 12:12:09 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-10 09:41:55 +0100 |
| commit | 1f5bd7639dc60f910b4ca7d2a645956afb125fce (patch) | |
| tree | 3b713751a8624d3a837cae299d82c5e6548f8547 /meta/recipes-devtools/elfutils/elfutils_0.155.bb | |
| parent | 749fcafb080c41a9bc1e56880227e40d8dd70b88 (diff) | |
| download | poky-1f5bd7639dc60f910b4ca7d2a645956afb125fce.tar.gz | |
elfutils: Upgrade to v0.155
*license changed to GPLv3
*several patches were absolete so I removed them
*redhat-portability & redhat-robustify backported from
latest elfutils-portability & elfutils-robustify from
upstream
(From OE-Core rev: 6edbaf14f875b7759672e8d118c59a01dbdeb853)
Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils_0.155.bb')
| -rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.155.bb | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.155.bb b/meta/recipes-devtools/elfutils/elfutils_0.155.bb new file mode 100644 index 0000000000..6291d11aa1 --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils_0.155.bb | |||
| @@ -0,0 +1,84 @@ | |||
| 1 | DESCRIPTION = "A collection of utilities and DSOs to handle compiled objects." | ||
| 2 | HOMEPAGE = "https://fedorahosted.org/elfutils" | ||
| 3 | SECTION = "base" | ||
| 4 | LICENSE = "(GPLv3 & Elfutils-Exception)" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
| 6 | DEPENDS = "libtool bzip2 zlib virtual/libintl" | ||
| 7 | |||
| 8 | PR = "r0" | ||
| 9 | |||
| 10 | SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/${PV}/elfutils-${PV}.tar.bz2" | ||
| 11 | |||
| 12 | SRC_URI[md5sum] = "163a5712b86f6bdfebdf233cc6e2192d" | ||
| 13 | SRC_URI[sha256sum] = "68444a4526416ffd68852ec3c6a40ceddcca46538297322405319884c5d30ed8" | ||
| 14 | |||
| 15 | SRC_URI += "\ | ||
| 16 | file://redhat-portability.diff \ | ||
| 17 | file://redhat-robustify.diff \ | ||
| 18 | file://hppa_backend.diff \ | ||
| 19 | file://arm_backend.diff \ | ||
| 20 | file://mips_backend.diff \ | ||
| 21 | file://m68k_backend.diff \ | ||
| 22 | file://do-autoreconf.diff \ | ||
| 23 | file://elf_additions.diff \ | ||
| 24 | file://mempcpy.patch \ | ||
| 25 | file://dso-link-change.patch \ | ||
| 26 | file://nm-Fix-size-passed-to-snprintf-for-invalid-sh_name-case.patch \ | ||
| 27 | file://elfutils-ar-c-fix-num-passed-to-memset.patch \ | ||
| 28 | " | ||
| 29 | # Only apply when building uclibc based target recipe | ||
| 30 | SRC_URI_append_libc-uclibc = " file://uclibc-support.patch" | ||
| 31 | |||
| 32 | # The buildsystem wants to generate 2 .h files from source using a binary it just built, | ||
| 33 | # which can not pass the cross compiling, so let's work around it by adding 2 .h files | ||
| 34 | # along with the do_configure_prepend() | ||
| 35 | |||
| 36 | SRC_URI += "\ | ||
| 37 | file://i386_dis.h \ | ||
| 38 | file://x86_64_dis.h \ | ||
| 39 | " | ||
| 40 | inherit autotools gettext | ||
| 41 | |||
| 42 | EXTRA_OECONF = "--program-prefix=eu- --without-lzma" | ||
| 43 | EXTRA_OECONF_append_class-native = " --without-bzlib" | ||
| 44 | EXTRA_OECONF_append_libc-uclibc = " --enable-uclibc" | ||
| 45 | |||
| 46 | do_configure_prepend() { | ||
| 47 | sed -i '/^i386_dis.h:/,+4 {/.*/d}' ${S}/libcpu/Makefile.am | ||
| 48 | |||
| 49 | cp ${WORKDIR}/*dis.h ${S}/libcpu | ||
| 50 | } | ||
| 51 | |||
| 52 | # we can not build complete elfutils when using uclibc | ||
| 53 | # but some recipes e.g. gcc 4.5 depends on libelf so we | ||
| 54 | # build only libelf for uclibc case | ||
| 55 | |||
| 56 | EXTRA_OEMAKE_libc-uclibc = "-C libelf" | ||
| 57 | EXTRA_OEMAKE_class-native = "" | ||
| 58 | EXTRA_OEMAKE_class-nativesdk = "" | ||
| 59 | |||
| 60 | BBCLASSEXTEND = "native nativesdk" | ||
| 61 | |||
| 62 | # Package utilities separately | ||
| 63 | PACKAGES =+ "${PN}-binutils libelf libasm libdw libdw-dev libasm-dev libelf-dev" | ||
| 64 | FILES_${PN}-binutils = "\ | ||
| 65 | ${bindir}/eu-addr2line \ | ||
| 66 | ${bindir}/eu-ld \ | ||
| 67 | ${bindir}/eu-nm \ | ||
| 68 | ${bindir}/eu-readelf \ | ||
| 69 | ${bindir}/eu-size \ | ||
| 70 | ${bindir}/eu-strip" | ||
| 71 | |||
| 72 | FILES_libelf = "${libdir}/libelf-${PV}.so ${libdir}/libelf.so.*" | ||
| 73 | FILES_libasm = "${libdir}/libasm-${PV}.so ${libdir}/libasm.so.*" | ||
| 74 | FILES_libdw = "${libdir}/libdw-${PV}.so ${libdir}/libdw.so.* ${libdir}/elfutils/lib*" | ||
| 75 | FILES_libelf-dev = "${libdir}/libelf.so ${includedir}" | ||
| 76 | FILES_libasm-dev = "${libdir}/libasm.so ${includedir}/elfutils/libasm.h" | ||
| 77 | FILES_libdw-dev = "${libdir}/libdw.so ${includedir}/dwarf.h ${includedir}/elfutils/libdw*.h" | ||
| 78 | # Some packages have the version preceeding the .so instead properly | ||
| 79 | # versioned .so.<version>, so we need to reorder and repackage. | ||
| 80 | #FILES_${PN} += "${libdir}/*-${PV}.so ${base_libdir}/*-${PV}.so" | ||
| 81 | #FILES_SOLIBSDEV = "${libdir}/libasm.so ${libdir}/libdw.so ${libdir}/libelf.so" | ||
| 82 | |||
| 83 | # The package contains symlinks that trip up insane | ||
| 84 | INSANE_SKIP_${MLPREFIX}libdw = "dev-so" | ||
