On Mon, May 07, 2012 at 09:17:02PM +0200, Martin Jansa wrote:
> From: Khem Raj <raj.k...@gmail.com>

This is needed in meta-oe because without module-init-tools in oe-core
we get failures like this:

ERROR: Nothing PROVIDES 'virtual/arm-oe-linux-gnueabi-depmod' (but
/OE/shr-core/meta-smartphone/meta-openmoko/recipes-kernel/linux/linux-openmoko_3.2.bb,
/OE/shr-core/meta-smartphone/meta-samsung/recipes-kernel/linux/linux-samsung-crespo_git.bb,
/OE/shr-core/meta-handheld/recipes-kernel/linux/linux_3.0.1.bb DEPENDS
on or otherwise requires it)
NOTE: Runtime target 'kernel' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['kernel',
'virtual/arm-oe-linux-gnueabi-depmod']

kmod recipes should be droped from meta-oe too to get rid of this
warning:
ERROR: Multiple .bb files are due to be built which each provide kmod
(/OE/shr-core/openembedded-core/meta/recipes-kernel/kmod/kmod_git.bb
/OE/shr-core/meta-openembedded/meta-oe/recipes-kernel/kmod/kmod_git.bb).

I have patch for it in jansa/pull2 too, but
ERROR: Package version for package kmod went backwards which would break
package feeds from (0:git-r3 to
0:7+git02629fa02e96763db7460a930239cc93649a52f8-r0.0)
so we need PE bump preferably in oe-core.

And also libkmod*so.* is now packaged in kmod package not libkmod but that's
probably bug in oe-core recipe... because
FILES_libkmod = "${base_libdir}/libkmod*${SOLIBS}"
and they are installed in ${libdir}.
probably that's from where this comment in kmod recipe comes from
# libdir = "${base_libdir}"

Cheers,

> Signed-off-by: Khem Raj <raj.k...@gmail.com>
> Signed-off-by: Martin Jansa <martin.ja...@gmail.com>
> ---
>  meta-oe/classes/kernel.bbclass |    7 +++----
>  1 files changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass
> index 66398ef..b431f8e 100644
> --- a/meta-oe/classes/kernel.bbclass
> +++ b/meta-oe/classes/kernel.bbclass
> @@ -1,7 +1,7 @@
>  inherit linux-kernel-base module_strip
>  
>  PROVIDES += "virtual/kernel"
> -DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod 
> virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
> +DEPENDS += "virtual/${TARGET_PREFIX}gcc kmod-native 
> virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
>  
>  # we include gcc above, we dont need virtual/libc
>  INHIBIT_DEFAULT_DEPS = "1"
> @@ -274,7 +274,7 @@ if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then
>       mkdir -p $D/lib/modules/${KERNEL_VERSION}
>  fi
>  if [ -n "$D" ]; then
> -     ${HOST_PREFIX}depmod -A -b $D -F 
> ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
> +     depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} 
> ${KERNEL_VERSION}
>  else
>       depmod -a
>  fi
> @@ -352,9 +352,8 @@ python populate_packages_prepend () {
>               if m:
>                       kernelver_stripped = m.group(1)
>               path = d.getVar("PATH", True)
> -             host_prefix = d.getVar("HOST_PREFIX", True) or ""
>  
> -             cmd = "PATH=\"%s\" %sdepmod -n -a -r -b %s -F 
> %s/boot/System.map-%s %s" % (path, host_prefix, dvar, dvar, kernelver, 
> kernelver_stripped)
> +             cmd = "PATH=\"%s\" depmod -n -a -b %s -F %s/boot/System.map-%s 
> %s" % (path, dvar, dvar, kernelver, kernelver_stripped)
>               f = os.popen(cmd, 'r')
>  
>               deps = {}
> -- 
> 1.7.8.6
> 

-- 
Martin 'JaMa' Jansa     jabber: martin.ja...@gmail.com

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to