package.bbclass: do not split debug pkg when no debugsources.list
We don't have to split the debug pkg if it is null (No debugsources.list since the find-debuginfo.sh would not generate it for the null pkg). Serval pkg's debug pkg is null, and there were a few errors: (53 pkgs had such errors in a core-image-sato build): log.do_package:sort: open failed: debugsources.list: No such file or directory [YOCTO #2076] (From OE-Core rev: f88e3f420b4e95ab5ba4a075df8ed65b817f8b45) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f65d96ba2a
commit
a80203625a
|
@ -234,6 +234,8 @@ def splitfile2(debugsrcdir, d):
|
|||
|
||||
import commands, stat
|
||||
|
||||
sourcefile = d.expand("${WORKDIR}/debugsources.list")
|
||||
if debugsrcdir and os.path.isfile(sourcefile):
|
||||
dvar = d.getVar('PKGD', True)
|
||||
pathprefix = "export PATH=%s; " % d.getVar('PATH', True)
|
||||
strip = d.getVar("STRIP", True)
|
||||
|
@ -242,9 +244,7 @@ def splitfile2(debugsrcdir, d):
|
|||
workdir = d.getVar("WORKDIR", True)
|
||||
workparentdir = os.path.dirname(workdir)
|
||||
workbasedir = os.path.basename(workdir)
|
||||
sourcefile = d.expand("${WORKDIR}/debugsources.list")
|
||||
|
||||
if debugsrcdir:
|
||||
nosuchdir = []
|
||||
basepath = dvar
|
||||
for p in debugsrcdir.split("/"):
|
||||
|
|
Loading…
Reference in New Issue