package.bbclass: Fix debug source processing for static libraries

Format of the sources list is the [ (file, [source, ...]), ... ] before
this change, the static libraries were processed but the items were
included incorrectly causing no sources for static libraries to be
included.

(From OE-Core rev: fa356b23c2f4599681693bba50d36659b07a8125)

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mark Hatle
2020-02-07 14:20:06 -06:00
committed by Richard Purdie
parent 0e48ca10aa
commit 6a543159a3

View File

@@ -1051,7 +1051,7 @@ python split_and_strip_files () {
if debugsrcdir and not targetos.startswith("mingw"):
for file in staticlibs:
results.extend(source_info(file, d, fatal=False))
results.append( (file, source_info(file, d, fatal=False)) )
sources = set()
for r in results: