summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-04-09 16:41:59 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-11 00:04:43 +0100
commit4c72ee98c2b3dcc642f7904f4ffeab5100305e8f (patch)
tree256bded142ee1fe32e6031ba340b0e01be22eb0d
parentc546037dc9a9af49246d06114f19533ecfca67c3 (diff)
downloadpoky-4c72ee98c2b3dcc642f7904f4ffeab5100305e8f.tar.gz
Hob: Fix the pattern patch for image name
Sometimes, users may open an image that is not built by Hob, therefore its image name is not started with "hob-image-". This commit sets a looser rule for runnable image matching. This fixes [YOCTO #2240] (Bitbake rev: 7b81389566cb27451557ca11ec8ed40ef2630543) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index b685d11e69..277f9d4b4d 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -272,8 +272,7 @@ class ImageDetailsPage (HobPage):
272 def test_mach_runnable(self, image_name): 272 def test_mach_runnable(self, image_name):
273 mach_runnable = False 273 mach_runnable = False
274 for t in self.builder.parameters.runnable_machine_patterns: 274 for t in self.builder.parameters.runnable_machine_patterns:
275 mach_string = image_name.strip(self.builder.hob_image + '-') 275 if t in image_name:
276 if mach_string.startswith(t):
277 mach_runnable = True 276 mach_runnable = True
278 break 277 break
279 return mach_runnable 278 return mach_runnable