]> code.ossystems Code Review - openembedded-core.git/commitdiff
multilib_global.bbclass: handle kernel-module-* for multilib
authorDongxiao Xu <dongxiao.xu@intel.com>
Wed, 7 Sep 2011 08:33:41 +0000 (16:33 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Sep 2011 21:29:07 +0000 (22:29 +0100)
bitbake would report failed dependency of kernel-module-* when testing
multilib. kernel-module-* are recommended by some other recipes.

Do not extend name for kernel-module-* related packages.

[YOCTO #1456]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/multilib_global.bbclass

index 217349b2d485dbb1c36c0b6b94cd38aae5d4384d..1263e4ea829cd6e130b55137bf50fa7fb73a3142 100644 (file)
@@ -17,6 +17,8 @@ python multilib_virtclass_handler_global () {
 addhandler multilib_virtclass_handler_global
 
 def multilib_extend_name(variant, name):
+    if name.startswith("kernel-module"):
+        return name
     if name.startswith("virtual/"):
         subs = name.split("/", 1)[1]
         if not subs.startswith(variant):