diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-06-15 10:12:11 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-17 13:42:31 +0100 |
| commit | 60fe30204c7db6918f37b6ce6cf2018da9e76fb4 (patch) | |
| tree | 77fa17508218ebf36ae95f264ac1fe0d59c8b560 | |
| parent | 4e2baf969f1ab0ea62fb5f7c23f107876eb3abf6 (diff) | |
| download | poky-60fe30204c7db6918f37b6ce6cf2018da9e76fb4.tar.gz | |
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>
| -rw-r--r-- | meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 3 | ||||
| -rw-r--r-- | meta/recipes-devtools/gdb/gdb-cross.inc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc index c9daf25a41..edb05b6f18 100644 --- a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc +++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc | |||
| @@ -11,12 +11,13 @@ DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext \ | |||
| 11 | GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'" | 11 | GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'" |
| 12 | 12 | ||
| 13 | # Overrides PACKAGECONFIG variables in gdb-common.inc | 13 | # Overrides PACKAGECONFIG variables in gdb-common.inc |
| 14 | PACKAGECONFIG ??= "python readline" | 14 | PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" |
| 15 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,nativesdk-python3, \ | 15 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,nativesdk-python3, \ |
| 16 | nativesdk-python3-core \ | 16 | nativesdk-python3-core \ |
| 17 | nativesdk-python3-codecs nativesdk-python3-netclient \ | 17 | nativesdk-python3-codecs nativesdk-python3-netclient \ |
| 18 | " | 18 | " |
| 19 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,nativesdk-readline" | 19 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,nativesdk-readline" |
| 20 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, nativesdk-elfutils" | ||
| 20 | 21 | ||
| 21 | SSTATE_DUPWHITELIST += "${STAGING_DATADIR}/gdb" | 22 | SSTATE_DUPWHITELIST += "${STAGING_DATADIR}/gdb" |
| 22 | 23 | ||
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" | |||
| 5 | inherit python3native | 5 | inherit python3native |
| 6 | 6 | ||
| 7 | # Overrides PACKAGECONFIG variables in gdb-common.inc | 7 | # Overrides PACKAGECONFIG variables in gdb-common.inc |
| 8 | PACKAGECONFIG ??= "python readline" | 8 | PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" |
| 9 | PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native" | 9 | PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native" |
| 10 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native" | 10 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native" |
| 11 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils-native" | ||
| 11 | 12 | ||
| 12 | do_compile_prepend() { | 13 | do_compile_prepend() { |
| 13 | export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}" | 14 | export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}" |
