summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/elfutils_0.160.bb
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2014-11-14 17:29:03 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-25 13:03:28 +0000
commit2e13f27e38a7e366e8ce12bd22aa072a7bf89068 (patch)
tree2bc963b4bf5cd06b47e9475fb1ecf21306abc929 /meta/recipes-devtools/elfutils/elfutils_0.160.bb
parentfa234ef4e0855bfcd0411c6039d941c59d421b36 (diff)
downloadpoky-2e13f27e38a7e366e8ce12bd22aa072a7bf89068.tar.gz
elfutils: upgrade to 0.160
- Upgrade elfutils to 0.160 - Move 0.148 patches from elfutils to elfutils-0.148 - Drop 0.158 patches that got from debain, so far debian doesn't provide patches for 0.160 (the latest is 0.159) - Move fixheadercheck.patch from 0.159 to 0.160 - We choose to use 0.159 patches from debian for the current 0.160 which located in elfutils-0.160 1) Rebase the following patches from 0.159 to 0.160 hppa_backend.diff arm_backend.diff mips_backend.diff m68k_backend.diff arm_func_value.patch arm_unwind_ret_mask.patch 2) Rebase redhat-portability.diff according to commit 52a6d20519870103134166d91e22d21fd736195d Author: Roxana Ciobanu <roxana.ciobanu@intel.com> Date: Tue Jul 1 17:17:00 2014 +0300 elfutils/elfutils-native: Fix patching generated files 3) Drop the following patches which have already beem merged to 0.160 arm_unsupported.patch arm_syscall.patch unaligned.patch aarch64-run-native-test-fix.patch (From OE-Core rev: 74b191022494fc1d357c1f05dbce38c986bed365) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils_0.160.bb')
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.160.bb97
1 files changed, 97 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.160.bb b/meta/recipes-devtools/elfutils/elfutils_0.160.bb
new file mode 100644
index 0000000000..e02918e94a
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/elfutils_0.160.bb
@@ -0,0 +1,97 @@
1SUMMARY = "Utilities and libraries for handling compiled object files"
2HOMEPAGE = "https://fedorahosted.org/elfutils"
3SECTION = "base"
4LICENSE = "(GPLv3 & Elfutils-Exception)"
5LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
6DEPENDS = "libtool bzip2 zlib virtual/libintl"
7
8SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/${PV}/elfutils-${PV}.tar.bz2"
9
10SRC_URI[md5sum] = "7527f22dff8b1ac8c122cfc4d3d3bb1e"
11SRC_URI[sha256sum] = "741b556863c069ceab2d81eb54aeda8c34f46728859704eaf9baef8503e9a9d1"
12
13SRC_URI += "\
14 file://mempcpy.patch \
15 file://dso-link-change.patch \
16 file://Fix_elf_cvt_gunhash.patch \
17 file://fixheadercheck.patch \
18"
19
20# pick the patch from debian
21# http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.159-4.debian.tar.xz
22SRC_URI += "\
23 file://redhat-portability.diff \
24 file://hppa_backend.diff \
25 file://arm_backend.diff \
26 file://mips_backend.diff \
27 file://m68k_backend.diff \
28 file://testsuite-ignore-elflint.diff \
29 file://scanf-format.patch \
30 file://mips_readelf_w.patch \
31 file://arm_func_value.patch \
32 file://arm_unwind_ret_mask.patch \
33 file://non_linux.patch \
34"
35
36# Only apply when building uclibc based target recipe
37SRC_URI_append_libc-uclibc = " file://uclibc-support.patch"
38
39# The buildsystem wants to generate 2 .h files from source using a binary it just built,
40# which can not pass the cross compiling, so let's work around it by adding 2 .h files
41# along with the do_configure_prepend()
42
43SRC_URI += "\
44 file://i386_dis.h \
45 file://x86_64_dis.h \
46"
47inherit autotools gettext
48
49EXTRA_OECONF = "--program-prefix=eu- --without-lzma"
50EXTRA_OECONF_append_class-native = " --without-bzlib"
51EXTRA_OECONF_append_libc-uclibc = " --enable-uclibc"
52
53do_configure_prepend() {
54 sed -i '/^i386_dis.h:/,+4 {/.*/d}' ${S}/libcpu/Makefile.am
55
56 cp ${WORKDIR}/*dis.h ${S}/libcpu
57}
58
59do_install_append() {
60 if [ "${TARGET_ARCH}" != "x86_64" ] && [ -z `echo "${TARGET_ARCH}"|grep 'i.86'` ];then
61 rm ${D}${bindir}/eu-objdump
62 fi
63}
64
65# we can not build complete elfutils when using uclibc
66# but some recipes e.g. gcc 4.5 depends on libelf so we
67# build only libelf for uclibc case
68
69EXTRA_OEMAKE_libc-uclibc = "-C libelf"
70EXTRA_OEMAKE_class-native = ""
71EXTRA_OEMAKE_class-nativesdk = ""
72
73BBCLASSEXTEND = "native nativesdk"
74
75# Package utilities separately
76PACKAGES =+ "${PN}-binutils libelf libasm libdw libdw-dev libasm-dev libelf-dev"
77FILES_${PN}-binutils = "\
78 ${bindir}/eu-addr2line \
79 ${bindir}/eu-ld \
80 ${bindir}/eu-nm \
81 ${bindir}/eu-readelf \
82 ${bindir}/eu-size \
83 ${bindir}/eu-strip"
84
85FILES_libelf = "${libdir}/libelf-${PV}.so ${libdir}/libelf.so.*"
86FILES_libasm = "${libdir}/libasm-${PV}.so ${libdir}/libasm.so.*"
87FILES_libdw = "${libdir}/libdw-${PV}.so ${libdir}/libdw.so.* ${libdir}/elfutils/lib*"
88FILES_libelf-dev = "${libdir}/libelf.so ${includedir}"
89FILES_libasm-dev = "${libdir}/libasm.so ${includedir}/elfutils/libasm.h"
90FILES_libdw-dev = "${libdir}/libdw.so ${includedir}/dwarf.h ${includedir}/elfutils/libdw*.h"
91# Some packages have the version preceeding the .so instead properly
92# versioned .so.<version>, so we need to reorder and repackage.
93#FILES_${PN} += "${libdir}/*-${PV}.so ${base_libdir}/*-${PV}.so"
94#FILES_SOLIBSDEV = "${libdir}/libasm.so ${libdir}/libdw.so ${libdir}/libelf.so"
95
96# The package contains symlinks that trip up insane
97INSANE_SKIP_${MLPREFIX}libdw = "dev-so"