[yocto] What is the correct way to get a list of package run-time dependencies during the build process?
Reshetova, Elena
elena.reshetova at intel.com
Mon Feb 8 23:42:23 PST 2016
>So I wasn't quite right - I think you also need to come after do_packagedata
>and also you'll need to read the subpackage metadata. Inspired by
>insane.bbclass, this works:
>addtask printrdeps before do_build after do_package do_packagedata
>do_printrdeps[nostamp] = "1"
>python do_printrdeps() {
> bb.build.exec_func("read_subpackage_metadata", d)
> for p in d.getVar("PACKAGES", True).split():
> bb.warn("Got package %s" % p)
> bb.warn("Got RDEPENDS %s" % d.getVar("RDEPENDS_" + p, True))
>}
Yes, this actually works. Thank you very much Ross!
Best Regards,
Elena.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160209/c81c922f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7586 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160209/c81c922f/attachment.bin>
More information about the yocto
mailing list