summaryrefslogtreecommitdiff
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-07-12 14:29:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-12 15:22:00 +0100
commit7a383f8ae8433c14b6995966216b9e6e81ea6a51 (patch)
tree7c991b02474ea8f37a4b7d61386133d4713d59d8 /meta/classes/insane.bbclass
parent8b524d44a74b7501e83c6aecde4814ae69617dc8 (diff)
downloadopenembedded-core-7a383f8ae8433c14b6995966216b9e6e81ea6a51.tar.gz
openembedded-core-7a383f8ae8433c14b6995966216b9e6e81ea6a51.tar.bz2
openembedded-core-7a383f8ae8433c14b6995966216b9e6e81ea6a51.tar.xz
openembedded-core-7a383f8ae8433c14b6995966216b9e6e81ea6a51.zip
insane.bbclass: skip rdepends QA checks for kernel / modules
The kernel and module recipes have very few dbg/dev packages, however they can easily have false positive results from the rdepends QA checks (e.g. kernel-module-lirc-dev). Thus disable these tests for any recipe that inherits kernel or module-base. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 1567f3622..8d5da00d1 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -416,6 +416,11 @@ def package_qa_walk(path, warnfuncs, errorfuncs, skip, package, d):
return len(errors) == 0
def package_qa_check_rdepends(pkg, pkgdest, skip, d):
+ # Don't do this check for kernel/module recipes, there aren't too many debug/development
+ # packages and you can get false positives e.g. on kernel-module-lirc-dev
+ if bb.data.inherits_class("kernel", d) or bb.data.inherits_class("module-base", d):
+ return True
+
sane = True
if not "-dbg" in pkg and not "task-" in pkg and not "-image" in pkg:
# Copied from package_ipk.bbclass