]> code.ossystems Code Review - openembedded-core.git/commitdiff
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:17:06 +0000 (13:17 +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.

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

index fec3db6b379c3e54ea4407324ad035c0ef37c88b..2fbd2602ca1f60aceddacb83c1cbf0f63619633a 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