mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
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 <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4e2baf969f
commit
60fe30204c
@@ -11,12 +11,13 @@ DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext \
|
||||
GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'"
|
||||
|
||||
# Overrides PACKAGECONFIG variables in gdb-common.inc
|
||||
PACKAGECONFIG ??= "python readline"
|
||||
PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
|
||||
PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,nativesdk-python3, \
|
||||
nativesdk-python3-core \
|
||||
nativesdk-python3-codecs nativesdk-python3-netclient \
|
||||
"
|
||||
PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,nativesdk-readline"
|
||||
PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, nativesdk-elfutils"
|
||||
|
||||
SSTATE_DUPWHITELIST += "${STAGING_DATADIR}/gdb"
|
||||
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user