[oe] [PATCH] kernel.bbclass: fix retrieving dependencies between modules.
Filip Zyzniewski
filip.zyzniewski at gmail.com
Thu Feb 17 20:09:16 UTC 2011
get_dependencies() searched for a filename key in dependencies
directory with the /lib/modules/kernel_version prefix while
the directory had entries stripped of it.
Signed-off-by: Filip Zyzniewski <filip.zyzniewski at gmail.com>
---
classes/kernel.bbclass | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index e22211d..3642a53 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -385,7 +385,12 @@ python populate_packages_prepend () {
return deps
def get_dependencies(file, pattern, format):
- file = file.replace(bb.data.getVar('PKGD', d, 1) or '', '', 1)
+ prefix = os.path.normpath(os.path.join(
+ os.path.join(bb.data.getVar('PKGD', d, 1) or ''),
+ 'lib/modules',
+ bb.data.getVar('KERNEL_VERSION', d, 1)
+ )) + '/'
+ file = file.replace(prefix, '', 1)
if module_deps.has_key(file):
import re
--
1.7.1
More information about the Openembedded-devel
mailing list