Patchwork [1/2] multilib_global.bbclass: handle kernel-module-* for multilib

login
register
mail settings
Submitter Dongxiao Xu
Date Sept. 7, 2011, 8:33 a.m.
Message ID <d6c365ea40f8c69e9a3a0379b2da1bbf5db754cd.1315384269.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/11135/
State New, archived
Headers show

Comments

Dongxiao Xu - Sept. 7, 2011, 8:33 a.m.
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>
---
 meta/classes/multilib_global.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/multilib_global.bbclass b/meta/classes/multilib_global.bbclass
index 217349b..1263e4e 100644
--- a/meta/classes/multilib_global.bbclass
+++ b/meta/classes/multilib_global.bbclass
@@ -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):