diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-18 10:12:51 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-18 22:53:45 +0000 |
commit | ebdbd105efb68bd4c68b5701927e51a3a676859a (patch) | |
tree | 67d2f0bc18aee956361f8548eaab4b542c7bc178 | |
parent | cce708b925c1f5dad2f95dbde4742d423260d31b (diff) | |
download | poky-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.inc | 4 | ||||
-rw-r--r-- | meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/gdb/gdb-cross.inc | 4 |
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 | ||
33 | PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)} python \ | 33 | PACKAGECONFIG ??= "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. |
37 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" | 35 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" |
38 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3-codecs" | 36 | PACKAGECONFIG[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 | |||
12 | GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'" | 12 | GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'" |
13 | 13 | ||
14 | # Overrides PACKAGECONFIG variables in gdb-common.inc | 14 | # Overrides PACKAGECONFIG variables in gdb-common.inc |
15 | PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" | ||
16 | PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,nativesdk-python3, \ | 15 | PACKAGECONFIG[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 | " | ||
20 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,nativesdk-readline" | ||
21 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, nativesdk-elfutils" | ||
22 | 18 | ||
23 | SSTATE_ALLOW_OVERLAP_FILES += "${STAGING_DATADIR}/gdb" | 19 | SSTATE_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 | ||
5 | inherit python3native pkgconfig | 5 | inherit python3native pkgconfig |
6 | 6 | ||
7 | # Overrides PACKAGECONFIG variables in gdb-common.inc | ||
8 | PACKAGECONFIG ??= "python readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" | ||
9 | PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native" | 7 | PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python3-native" |
10 | PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline-native" | ||
11 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils-native" | ||
12 | 8 | ||
13 | do_compile:prepend() { | 9 | do_compile:prepend() { |
14 | export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}" | 10 | export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}" |