summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-18 10:12:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-18 22:53:45 +0000
commitebdbd105efb68bd4c68b5701927e51a3a676859a (patch)
tree67d2f0bc18aee956361f8548eaab4b542c7bc178
parentcce708b925c1f5dad2f95dbde4742d423260d31b (diff)
downloadpoky-ebdbd105efb68bd4c68b5701927e51a3a676859a.tar.gz
gdb: Include xz support by default and clean up PACKAGECONFIG
Firstly, just include xz support in all gdb configurations to simplify config. Most systems would already have the shared library so this isn't a big problem for a larger debugging tool. The PACKAGECONFIG duplication is also confusing. The only PACKAGECONFIG which needs special handking is the python one due to the differing modules needed in the nativesdk case. Remove all the other duplicate entries which should work through our usual class extension code. (From OE-Core rev: d6eefdd66171c2bcdeeebc8a9b583c5383c80bf6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gdb/gdb-common.inc4
-rw-r--r--meta/recipes-devtools/gdb/gdb-cross-canadian.inc6
-rw-r--r--meta/recipes-devtools/gdb/gdb-cross.inc4
3 files changed, 2 insertions, 12 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index ea1fc27a61..c0312f0f05 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -30,9 +30,7 @@ EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \
30 --with-libgmp-prefix=${STAGING_EXECPREFIXDIR} \ 30 --with-libgmp-prefix=${STAGING_EXECPREFIXDIR} \
31" 31"
32 32
33PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)} python \ 33PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)} python xz"
34 ${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'xz', '', d)} \
35 "
36# Use --without-system-readline to compile with readline 5. 34# Use --without-system-readline to compile with readline 5.
37PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" 35PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline"
38PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3-codecs" 36PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3-codecs"
diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
index 9150c196a8..7b4a7719e4 100644
--- a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
+++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
@@ -12,13 +12,9 @@ DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext nativesdk-gmp nat
12GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'" 12GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'"
13 13
14# Overrides PACKAGECONFIG variables in gdb-common.inc 14# Overrides PACKAGECONFIG variables in gdb-common.inc
15PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
16PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,nativesdk-python3, \ 15PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,nativesdk-python3, \
17 nativesdk-python3-core \ 16 nativesdk-python3-core \
18 nativesdk-python3-codecs nativesdk-python3-netclient \ 17 nativesdk-python3-codecs nativesdk-python3-netclient"
19 "
20PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,nativesdk-readline"
21PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, nativesdk-elfutils"
22 18
23SSTATE_ALLOW_OVERLAP_FILES += "${STAGING_DATADIR}/gdb" 19SSTATE_ALLOW_OVERLAP_FILES += "${STAGING_DATADIR}/gdb"
24 20
diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc
index 399f4bba97..110a536db7 100644
--- a/meta/recipes-devtools/gdb/gdb-cross.inc
+++ b/meta/recipes-devtools/gdb/gdb-cross.inc
@@ -4,11 +4,7 @@ DEPENDS = "expat-native gmp-native mpfr-native ncurses-native flex-native bison-
4 4
5inherit python3native pkgconfig 5inherit python3native pkgconfig
6 6
7# Overrides PACKAGECONFIG variables in gdb-common.inc
8PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
9PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native" 7PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native"
10PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native"
11PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils-native"
12 8
13do_compile:prepend() { 9do_compile:prepend() {
14 export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}" 10 export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}"