diff options
| author | Etienne Cordonnier <ecordonnier@snap.com> | 2023-12-05 14:37:54 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-06 22:55:50 +0000 |
| commit | 959b1f7de437db9156da11fb799a3c2f4e9082dc (patch) | |
| tree | 78b4fe3cada52f6393c24c593d131d817b72e6ed /meta/recipes-devtools | |
| parent | 72342e8eea493777dd278558f9b603a826248937 (diff) | |
| download | poky-959b1f7de437db9156da11fb799a3c2f4e9082dc.tar.gz | |
gdb/systemd: enable minidebuginfo support conditionally
Enabling minidebuginfo is not useful if gdb and systemd-coredump
are unable to parse it.
In order to parse it, gdb needs xz support. Systemd needs coredump enabled, as
well as elfutil enabled as well (systemd-coredump loads libdw which is part of elfutils using dlopen).
(From OE-Core rev: 0d2df803bebfd7e832ab7da54c4dacaaeeb424a9)
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.189.bb | 4 | ||||
| -rw-r--r-- | meta/recipes-devtools/gdb/gdb-common.inc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.189.bb b/meta/recipes-devtools/elfutils/elfutils_0.189.bb index d8bf82b022..d69828131e 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.189.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.189.bb | |||
| @@ -39,7 +39,9 @@ BUILD_CFLAGS += "-Wno-error=stringop-overflow" | |||
| 39 | DEPENDS_BZIP2 = "bzip2-replacement-native" | 39 | DEPENDS_BZIP2 = "bzip2-replacement-native" |
| 40 | DEPENDS_BZIP2:class-target = "bzip2" | 40 | DEPENDS_BZIP2:class-target = "bzip2" |
| 41 | 41 | ||
| 42 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'debuginfod', 'debuginfod libdebuginfod', '', d)}" | 42 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'debuginfod', 'debuginfod libdebuginfod', '', d)} \ |
| 43 | ${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'xz', '', d)} \ | ||
| 44 | " | ||
| 43 | PACKAGECONFIG[bzip2] = "--with-bzlib,--without-bzlib,${DEPENDS_BZIP2}" | 45 | PACKAGECONFIG[bzip2] = "--with-bzlib,--without-bzlib,${DEPENDS_BZIP2}" |
| 44 | PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz" | 46 | PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz" |
| 45 | PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd" | 47 | PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd" |
diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc index 3349719a6b..48dbb91463 100644 --- a/meta/recipes-devtools/gdb/gdb-common.inc +++ b/meta/recipes-devtools/gdb/gdb-common.inc | |||
| @@ -30,7 +30,9 @@ EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \ | |||
| 30 | --with-libgmp-prefix=${STAGING_EXECPREFIXDIR} \ | 30 | --with-libgmp-prefix=${STAGING_EXECPREFIXDIR} \ |
| 31 | " | 31 | " |
| 32 | 32 | ||
| 33 | PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)} python" | 33 | PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)} python \ |
| 34 | ${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'xz', '', d)} \ | ||
| 35 | " | ||
| 34 | # Use --without-system-readline to compile with readline 5. | 36 | # Use --without-system-readline to compile with readline 5. |
| 35 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" | 37 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" |
| 36 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3-codecs" | 38 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3-codecs" |
