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:
parent
abcb2e0916
commit
f73ea0e40d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue