gdb-cross: remove duplicated PACKAGECONFIG
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
I was hesitating a bit for this patch: typically when building gdb-cross there is no space constraint on the host where gdb-cross runs (a desktop PC / laptop, etc), so we could keep the separated definition of PACKAGECONFIG, and enable xz and minidebuginfod for gdb-cross per default and avoid requiring a rebuild of gdb-cross depending on which DISTRO_FEATURES is enabled.
This is especially true because when debugging with gdb-cross, a lot of libraries can get loaded, and the error message indicating the lack of lzma support / minidebuginfo is easy to miss, and gdb even reports that symbols are loaded when using "info sharedlibrary", because minidebuginfo symbols are not the "main" symbols, making it even more confusing.
On the other hand there are corner-cases where gdb-cross runs on some kind of embedded X86 SBC / mini-pc, and where there could be some size constraints.
What do you think?
Étienne
Quoted 53 lines · Etienne Cordonnier via lists.openembedded.org
From: Etienne Cordonnier <[email protected]>
Duplicating the PACKAGECONFIG variable in gdb-cross and gdb-common makes it easy to forget updating one definition without updating the other. However at the moment there is no need for two different definitions.
xz is also useful for gdb-cross when minidebuginfo is enabled, so it also needs
to be in the definition of PACKAGECONFIG in gdb-cross.incLet's remove the definition from gdb-cross.inc to make maintenance easier. This enables xz for gdb-cross as side-effect.
Signed-off-by Etienne Cordonnier <[email protected]>--- meta/recipes-devtools/gdb/gdb-cross.inc | 1 - 1 file changed, 1 deletion(-)meta/recipes-devtools/gdb/gdb-cross.inc +0
-0@@ -5,7 +5,6 @@ DEPENDS = "expat-native gmp-native mpfr-nativencurses-native flex-native bison-
inherit python3native pkgconfig# Overrides PACKAGECONFIG variables in gdb-common.inc
-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"
--
2.43.0-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#211099):
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Dcore_message_211099&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=oSIbflHDGXCKOEtGdeTw0NoVMfB4MNzVnlH24PhVxHu1FqyeKZyzmE5d8tWFu1Uh&s=uEf_KRP3T_J05Xw0q-gEJ9Hfy-sKi3qFqRvO-r5Pb9E&e=
Mute This Topic:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_mt_111104210_7048771&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=oSIbflHDGXCKOEtGdeTw0NoVMfB4MNzVnlH24PhVxHu1FqyeKZyzmE5d8tWFu1Uh&s=ZRFn5FiVLbIlO9SBIRGTceI69NCc5GtUrsR7CQ_ikd0&e=
Group Owner: [email protected] Unsubscribe:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Dcore_unsub&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=oSIbflHDGXCKOEtGdeTw0NoVMfB4MNzVnlH24PhVxHu1FqyeKZyzmE5d8tWFu1Uh&s=yqZIDTsDedhsAzvWHG7pwQTpvDNru18T6BiYoUkVgt0&e=
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-