diff options
author | Dan Callaghan <dan.callaghan@opengear.com> | 2019-10-16 08:44:56 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-31 16:09:34 +0000 |
commit | 1d67123f178b76292b5ac6f95a8895ccca40d852 (patch) | |
tree | 9988ae59414f570d76532d4952bc56c4b95f9be8 | |
parent | b245171a00199801d13cae93664179b6bcf3f28f (diff) | |
download | poky-1d67123f178b76292b5ac6f95a8895ccca40d852.tar.gz |
elfutils: add PACKAGECONFIG for compression algorithms
Elfutils has optional support for bzip2 and xz (lzma). It uses
this for decompressing embedded ELF sections like the .gnu_debugdata
section for "mini debuginfo":
https://sourceware.org/gdb/onlinedocs/gdb/MiniDebugInfo.html
Previously this support was unconditionally disabled but the reasons for
disabling them seem to no longer apply. Both the target and native
variants of elfutils can build successfully against both bzip2 and xz.
(From OE-Core rev: 37f4b2311eab6736ee92fc6ac39ddcba6d56a38e)
(From OE-Core rev: a898b13763a145f15dfd8ada033ae9f0d60e4185)
Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.177.bb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.177.bb b/meta/recipes-devtools/elfutils/elfutils_0.177.bb index 818794266c..da0e958762 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.177.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.177.bb | |||
@@ -3,7 +3,7 @@ HOMEPAGE = "https://sourceware.org/elfutils" | |||
3 | SECTION = "base" | 3 | SECTION = "base" |
4 | LICENSE = "GPLv2 & LGPLv3+ & GPLv3+" | 4 | LICENSE = "GPLv2 & LGPLv3+ & GPLv3+" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
6 | DEPENDS = "bzip2 zlib virtual/libintl" | 6 | DEPENDS = "zlib virtual/libintl" |
7 | DEPENDS_append_libc-musl = " argp-standalone fts musl-obstack " | 7 | DEPENDS_append_libc-musl = " argp-standalone fts musl-obstack " |
8 | # The Debian patches below are from: | 8 | # The Debian patches below are from: |
9 | # http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.176-1.debian.tar.xz | 9 | # http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.176-1.debian.tar.xz |
@@ -46,8 +46,15 @@ SRC_URI[sha256sum] = "fa489deccbcae7d8c920f60d85906124c1989c591196d90e0fd668e3dc | |||
46 | 46 | ||
47 | inherit autotools gettext ptest | 47 | inherit autotools gettext ptest |
48 | 48 | ||
49 | EXTRA_OECONF = "--program-prefix=eu- --without-lzma" | 49 | EXTRA_OECONF = "--program-prefix=eu-" |
50 | EXTRA_OECONF_append_class-native = " --without-bzlib" | 50 | |
51 | DEPENDS_BZIP2 = "bzip2-replacement-native" | ||
52 | DEPENDS_BZIP2_class-target = "bzip2" | ||
53 | |||
54 | PACKAGECONFIG ??= "bzip2" | ||
55 | PACKAGECONFIG[bzip2] = "--with-bzlib,--without-bzlib,${DEPENDS_BZIP2}" | ||
56 | PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz" | ||
57 | |||
51 | RDEPENDS_${PN}-ptest += "libasm libelf bash make coreutils ${PN}-binutils" | 58 | RDEPENDS_${PN}-ptest += "libasm libelf bash make coreutils ${PN}-binutils" |
52 | 59 | ||
53 | EXTRA_OECONF_append_class-target += "--disable-tests-rpath" | 60 | EXTRA_OECONF_append_class-target += "--disable-tests-rpath" |