[oe] [PATCH] kernel.bbclass: fix retrieving dependencies between modules.
Khem Raj
raj.khem at gmail.com
Thu Feb 17 22:36:51 UTC 2011
On Thu, Feb 17, 2011 at 12:09 PM, Filip Zyzniewski
<filip.zyzniewski at gmail.com> wrote:
> 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>
Acked-by: Khem Raj <raj.khem 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
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
More information about the Openembedded-devel
mailing list