mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c546037dc9
commit
4c72ee98c2
@@ -272,8 +272,7 @@ class ImageDetailsPage (HobPage):
|
|||||||
def test_mach_runnable(self, image_name):
|
def test_mach_runnable(self, image_name):
|
||||||
mach_runnable = False
|
mach_runnable = False
|
||||||
for t in self.builder.parameters.runnable_machine_patterns:
|
for t in self.builder.parameters.runnable_machine_patterns:
|
||||||
mach_string = image_name.strip(self.builder.hob_image + '-')
|
if t in image_name:
|
||||||
if mach_string.startswith(t):
|
|
||||||
mach_runnable = True
|
mach_runnable = True
|
||||||
break
|
break
|
||||||
return mach_runnable
|
return mach_runnable
|
||||||
|
|||||||
Reference in New Issue
Block a user