[OE-core] [PATCH 2/2] kernel: set RRECOMMENDS['nodevrrecs'] for kernel modules

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Thu Jan 12 16:32:14 UTC 2012


From: Enrico Scholz <enrico.scholz at 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 at sigma-chemnitz.de>
---
 meta/classes/kernel.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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 ""
-- 
1.7.7.5





More information about the Openembedded-core mailing list