Do not override the list of ELF files, with associated source info, when PACKAGE_DEBUG_STATIC_SPLIT is set. Extend the list instead.
When PACKAGE_DEBUG_STATIC_SPLIT is not set, use a generator expression instead of calling append for each element: Small cleanup. Signed-off-by: Benjamin Robin <[email protected]> --- meta/lib/oe/package.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index d047e41a78ec..4a244ec9801e 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py @@ -1292,10 +1292,9 @@ def process_split_and_strip_files(d): if dv["srcdir"] and not hostos.startswith("mingw"): if (d.getVar('PACKAGE_DEBUG_STATIC_SPLIT') == '1'): - results = oe.utils.multiprocess_launch(splitstaticdebuginfo, staticlibs, d, extraargs=(dvar, dv, d)) + results.extend(oe.utils.multiprocess_launch(splitstaticdebuginfo, staticlibs, d, extraargs=(dvar, dv, d))) else: - for file in staticlibs: - results.append( (file,source_info(file, d)) ) + results.extend((file, source_info(file, d)) for file in staticlibs) d.setVar("PKGDEBUGSOURCES", {strip_pkgd_prefix(f): sorted(s) for f, s in results}) -- 2.55.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#243113): https://lists.openembedded.org/g/openembedded-core/message/243113 Mute This Topic: https://lists.openembedded.org/mt/120681381/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
