summaryrefslogtreecommitdiffstats
path: root/meta/classes-global
diff options
context:
space:
mode:
authorEtienne Cordonnier <ecordonnier@snap.com>2023-12-05 14:37:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-06 22:55:50 +0000
commit959b1f7de437db9156da11fb799a3c2f4e9082dc (patch)
tree78b4fe3cada52f6393c24c593d131d817b72e6ed /meta/classes-global
parent72342e8eea493777dd278558f9b603a826248937 (diff)
downloadpoky-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/classes-global')
-rw-r--r--meta/classes-global/package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass
index 2ad820a81f..f56bca3542 100644
--- a/meta/classes-global/package.bbclass
+++ b/meta/classes-global/package.bbclass
@@ -234,7 +234,7 @@ python () {
234 deps = "" 234 deps = ""
235 for dep in (d.getVar('PACKAGE_DEPENDS') or "").split(): 235 for dep in (d.getVar('PACKAGE_DEPENDS') or "").split():
236 deps += " %s:do_populate_sysroot" % dep 236 deps += " %s:do_populate_sysroot" % dep
237 if d.getVar('PACKAGE_MINIDEBUGINFO') == '1': 237 if bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', True, False, d):
238 deps += ' xz-native:do_populate_sysroot' 238 deps += ' xz-native:do_populate_sysroot'
239 d.appendVarFlag('do_package', 'depends', deps) 239 d.appendVarFlag('do_package', 'depends', deps)
240 240