]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane.bbclass: skip rdepends QA checks for kernel / modules
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 12 Jul 2011 13:29:28 +0000 (14:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Jul 2011 14:22:00 +0000 (15:22 +0100)
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>
meta/classes/insane.bbclass

index 1567f36227c5bf70cfd11616148e482872a60ae6..8d5da00d1663afe15722ce602689e3ae9b814334 100644 (file)
@@ -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