package.bbclass: Allow per-package SKIP_FILEDEPS
authorPeter Seebach <peter.seebach@windriver.com>
Sat, 26 Jan 2013 18:21:28 +0000 (12:21 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Feb 2013 13:18:28 +0000 (13:18 +0000)
The existing check for SKIP_FILEDEPS can be overridden per recipe
using SKIP_FILEDEPS_pn-${PN}. However, there's no mechanism for
letting a single package within a recipe use SKIP_FILEDEPS.

This patch adds SKIP_FILEDEPS_<pkg>, by analogy to FILES_<pkg>.
Note that it only works one way; if the recipe has SKIP_FILEDEPS = 1,
the checks for individual packages will never be reached.

(From OE-Core rev: 94557b500ad38a49aec40629015ed0b24e167f76)

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass

index fec3db6..2fbd260 100644 (file)
@@ -1300,6 +1300,8 @@ python package_do_filedeps() {
 
     # Determine dependencies
     for pkg in packages.split():
+        if d.getVar('SKIP_FILEDEPS_' + pkg, True) == '1':
+            continue
         if pkg.endswith('-dbg') or pkg.endswith('-doc') or pkg.find('-locale-') != -1 or pkg.find('-localedata-') != -1 or pkg.find('-gconv-') != -1 or pkg.find('-charmap-') != -1 or pkg.startswith('kernel-module-'):
             continue