Patchwork [1/1] package.bbclass: Allow per-package SKIP_FILEDEPS

login
register
mail settings
Submitter Peter Seebach
Date Jan. 26, 2013, 6:21 p.m.
Message ID <be4befa9da5a0d36c54f05badd37123d7098bf05.1359224379.git.peter.seebach@windriver.com>
Download mbox | patch
Permalink /patch/43457/
State Accepted
Commit 4872ba3ee47c92a4a2e350ba6c9f2738929e4ad0
Headers show

Comments

Peter Seebach - Jan. 26, 2013, 6:21 p.m.
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>
---
 meta/classes/package.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index e8d7aef..3ed048e 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1310,6 +1310,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