kernel.bbclass: Fix adding module dependencies to RDEPENDS

Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
Joshua Lock authored and Richard Purdie committed 2010-08-17 22:49:39 +01:00
1 parent cb5d51a485
commit 67239d4251
1 file changed
+3
+3
View File
@@ -361,7 +361,10 @@ python populate_packages_prepend () {
return deps
def get_dependencies(file, pattern, format):
# file no longer includes PKGD
file = file.replace(bb.data.getVar('PKGD', d, 1) or '', '', 1)
# instead is prefixed with /lib/modules/${KERNEL_VERSION}
file = file.replace("/lib/modules/%s/" % bb.data.getVar('KERNEL_VERSION', d, 1) or '', '', 1)
if module_deps.has_key(file):
import re