Hob: Improve the matching for runnable machine type

(Bitbake rev: 1b14488bcfb345a3258b15ebfdaa2e1235a5fe87)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Dongxiao Xu 2012-03-29 20:01:10 +08:00 committed by Richard Purdie
parent abcb2e0916
commit f73ea0e40d
1 changed files with 2 additions and 1 deletions

View File

@ -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