From 60fe30204c7db6918f37b6ce6cf2018da9e76fb4 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Tue, 15 Jun 2021 10:12:11 +0200 Subject: gdb-cross: enable debuginfod This allows avoiding having gdb inside the target image, which might be too resource-constrained, or otherwise inconvenient. (From OE-Core rev: b903f250a7bbf04d5853f537b7565a80fb7ce1f3) Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- meta/recipes-devtools/gdb/gdb-cross.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/recipes-devtools/gdb/gdb-cross.inc') diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc index ebe329f6d3..f8a113da8f 100644 --- a/meta/recipes-devtools/gdb/gdb-cross.inc +++ b/meta/recipes-devtools/gdb/gdb-cross.inc @@ -5,9 +5,10 @@ DEPENDS = "expat-native ncurses-native flex-native bison-native" inherit python3native # Overrides PACKAGECONFIG variables in gdb-common.inc -PACKAGECONFIG ??= "python readline" +PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native" PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native" +PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils-native" do_compile_prepend() { export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}" -- cgit v1.2.3-54-g00ecf