Patchwork [2/2] kernel: set RRECOMMENDS['nodevrrecs'] for kernel modules

login
register
mail settings
Submitter Enrico Scholz
Date Jan. 12, 2012, 4:32 p.m.
Message ID <1326385934-32642-2-git-send-email-enrico.scholz@sigma-chemnitz.de>
Download mbox | patch
Permalink /patch/19187/
State New
Headers show

Comments

Enrico Scholz - Jan. 12, 2012, 4:32 p.m.
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>

It would be wrong to generate depchains like i2c-dev ->
module-init-tools-dev -> libc-dev.  Skip generation of recursive
RRECOMMENDS in such cases by using the nodevrrecs flag.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
 meta/classes/kernel.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index ec5d65e..3968b0c 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -426,6 +426,7 @@  python populate_packages_prepend () {
 		files = d.getVar('FILES_%s' % pkg, 1)
 		files = "%s /etc/modutils/%s /etc/modutils/%s.conf /etc/modprobe.d/%s.conf" % (files, basename, basename, basename)
 		d.setVar('FILES_%s' % pkg, files)
+		d.setVarFlag('RRECOMMENDS_%s' % pkg, 'nodevrrecs', True)
 
 		if vals.has_key("description"):
 			old_desc = d.getVar('DESCRIPTION_' + pkg, 1) or ""