diff options
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils_0.168.bb')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.168.bb | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.168.bb b/meta/recipes-devtools/elfutils/elfutils_0.168.bb new file mode 100644 index 0000000000..96e895aebf --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils_0.168.bb | |||
@@ -0,0 +1,88 @@ | |||
1 | SUMMARY = "Utilities and libraries for handling compiled object files" | ||
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 | DEPENDS_append_libc-musl = " argp-standalone fts " | ||
8 | |||
9 | SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/${PV}/${BP}.tar.bz2" | ||
10 | SRC_URI[md5sum] = "52adfa40758d0d39e5d5c57689bf38d6" | ||
11 | SRC_URI[sha256sum] = "b88d07893ba1373c7dd69a7855974706d05377766568a7d9002706d5de72c276" | ||
12 | |||
13 | SRC_URI += "\ | ||
14 | file://dso-link-change.patch \ | ||
15 | file://Fix_elf_cvt_gunhash.patch \ | ||
16 | file://fixheadercheck.patch \ | ||
17 | file://0001-elf_getarsym-Silence-Werror-maybe-uninitialized-fals.patch \ | ||
18 | file://0001-remove-the-unneed-checking.patch \ | ||
19 | file://0001-fix-a-stack-usage-warning.patch \ | ||
20 | file://aarch64_uio.patch \ | ||
21 | file://shadow.patch \ | ||
22 | " | ||
23 | |||
24 | # pick the patch from debian | ||
25 | # http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.168-0.2.debian.tar.xz | ||
26 | SRC_URI += "\ | ||
27 | file://debian/hppa_backend.diff \ | ||
28 | file://debian/arm_backend.diff \ | ||
29 | file://debian/mips_backend.diff \ | ||
30 | file://debian/testsuite-ignore-elflint.diff \ | ||
31 | file://debian/mips_readelf_w.patch \ | ||
32 | file://debian/kfreebsd_path.patch \ | ||
33 | file://debian/0001-Ignore-differences-between-mips-machine-identifiers.patch \ | ||
34 | file://debian/0002-Add-support-for-mips64-abis-in-mips_retval.c.patch \ | ||
35 | file://debian/0003-Add-mips-n64-relocation-format-hack.patch \ | ||
36 | file://debian/hurd_path.patch \ | ||
37 | file://debian/ignore_strmerge.diff \ | ||
38 | " | ||
39 | SRC_URI_append_libc-musl = " file://0001-build-Provide-alternatives-for-glibc-assumptions-hel.patch " | ||
40 | |||
41 | # The buildsystem wants to generate 2 .h files from source using a binary it just built, | ||
42 | # which can not pass the cross compiling, so let's work around it by adding 2 .h files | ||
43 | # along with the do_configure_prepend() | ||
44 | |||
45 | inherit autotools gettext | ||
46 | |||
47 | EXTRA_OECONF = "--program-prefix=eu- --without-lzma" | ||
48 | EXTRA_OECONF_append_class-native = " --without-bzlib" | ||
49 | EXTRA_OECONF_append_libc-uclibc = " --enable-uclibc" | ||
50 | |||
51 | do_install_append() { | ||
52 | if [ "${TARGET_ARCH}" != "x86_64" ] && [ -z `echo "${TARGET_ARCH}"|grep 'i.86'` ];then | ||
53 | rm -f ${D}${bindir}/eu-objdump | ||
54 | fi | ||
55 | } | ||
56 | |||
57 | # we can not build complete elfutils when using uclibc | ||
58 | # but some recipes e.g. gcc 4.5 depends on libelf so we | ||
59 | # build only libelf for uclibc case | ||
60 | |||
61 | EXTRA_OEMAKE_libc-uclibc = "-C libelf" | ||
62 | EXTRA_OEMAKE_class-native = "" | ||
63 | EXTRA_OEMAKE_class-nativesdk = "" | ||
64 | |||
65 | ALLOW_EMPTY_${PN}_libc-musl = "1" | ||
66 | |||
67 | BBCLASSEXTEND = "native nativesdk" | ||
68 | |||
69 | # Package utilities separately | ||
70 | PACKAGES =+ "${PN}-binutils libelf libasm libdw" | ||
71 | FILES_${PN}-binutils = "\ | ||
72 | ${bindir}/eu-addr2line \ | ||
73 | ${bindir}/eu-ld \ | ||
74 | ${bindir}/eu-nm \ | ||
75 | ${bindir}/eu-readelf \ | ||
76 | ${bindir}/eu-size \ | ||
77 | ${bindir}/eu-strip" | ||
78 | |||
79 | FILES_libelf = "${libdir}/libelf-${PV}.so ${libdir}/libelf.so.*" | ||
80 | FILES_libasm = "${libdir}/libasm-${PV}.so ${libdir}/libasm.so.*" | ||
81 | FILES_libdw = "${libdir}/libdw-${PV}.so ${libdir}/libdw.so.* ${libdir}/elfutils/lib*" | ||
82 | # Some packages have the version preceeding the .so instead properly | ||
83 | # versioned .so.<version>, so we need to reorder and repackage. | ||
84 | #FILES_${PN} += "${libdir}/*-${PV}.so ${base_libdir}/*-${PV}.so" | ||
85 | #FILES_SOLIBSDEV = "${libdir}/libasm.so ${libdir}/libdw.so ${libdir}/libelf.so" | ||
86 | |||
87 | # The package contains symlinks that trip up insane | ||
88 | INSANE_SKIP_${MLPREFIX}libdw = "dev-so" | ||