diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-09 21:26:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-25 15:33:30 +0100 |
commit | f6cb24cf2255297308ef57399a6be407129d9b8f (patch) | |
tree | c925b4a143563e0809c7181d90cb71749167f372 /meta/classes/binconfig-disabled.bbclass | |
parent | 58f08a96764094189b5aaf3cc8b4cc0c95e23409 (diff) | |
download | openembedded-core-f6cb24cf2255297308ef57399a6be407129d9b8f.tar.gz openembedded-core-f6cb24cf2255297308ef57399a6be407129d9b8f.tar.bz2 openembedded-core-f6cb24cf2255297308ef57399a6be407129d9b8f.zip |
insane: Add build depends check
Now that we can get the task dependency tree from bitbake, we can start
to use this to strengthen our QA checks. If a dependency is added on
something which isn't in our dependency tree, that is obviously a bad
thing for example.
This patch therefore checks the RDEPENDS against the list of tasks and
ensures we do have a dependency present, if not a QA warning or error
can be issued through the usual mechanism.
The implementation is complicated by needing to resolve the RDEPENDS to
a PN using pkgdata. Its possible that can be an RPROVIDES of another
package so we need to check that too if it isn't a direct RDEPENDS.
To allow this test to work, we need to extend the do_package_qa
dependencies to include all RDEPENDS. In practise the do_package_write_*
tasks already do this so there should be no new circular dependencies or
any issues like that.
For now the issues are warnings as there are issues this finds in
OE-Core which need to be resolved and certainly will be in other layers
too. This change should simplify and assist some of Martin's dependency
scripts, the idea for this came from a discussion with Martin. It has
changed in that it doesn't just cover shlibs dependencies but checks all
dependencies.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/binconfig-disabled.bbclass')
0 files changed, 0 insertions, 0 deletions