Hob: Improve the matching for runnable machine type
authorDongxiao Xu <dongxiao.xu@intel.com>
Thu, 29 Mar 2012 12:01:10 +0000 (20:01 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Mar 2012 20:25:52 +0000 (21:25 +0100)
(Bitbake rev: 1b14488bcfb345a3258b15ebfdaa2e1235a5fe87)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/imagedetailspage.py

index f15aad3..b70440d 100755 (executable)
@@ -281,7 +281,8 @@ class ImageDetailsPage (HobPage):
     def test_mach_runnable(self, image_name):
         mach_runnable = False
         for t in self.builder.parameters.runnable_machine_patterns:
-            if t in image_name:
+            mach_string = image_name.strip(self.builder.hob_image + '-')
+            if mach_string.startswith(t):
                 mach_runnable = True
                 break
         return mach_runnable