kernel.bbclass: Fix adding module dependencies to RDEPENDS

Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
Joshua Lock 2010-08-17 13:28:26 +01:00 committed by Richard Purdie
parent cb5d51a485
commit 67239d4251
1 changed files with 3 additions and 0 deletions

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