partitions & flashlayout: Prevent accident substring match
There is a case that I bitbake my-image when INITRAMFS_IMAGE is my-image-initramfs. In this case my-image is a substring of my-image-initramfs, causing ST's flashlayout and partitions classes accidentally skip adding their tasks. This patch makes sure to use exact string match during variable checks. Signed-off-by: Bumsik Kim <k.bumsik@gmail.com>
This commit is contained in:
1 parent
7d3d03fc48
commit
256eae27d9
2 files changed
+2
-2
No files matched your search
@@ -32,7 +32,7 @@ python __anonymous () {
|
||||
# We need to append partition images generation only to image
|
||||
# that are not one of the defined partitions and not the InitRAMFS image.
|
||||
# Without this check we would create circular dependency
|
||||
if current_image_name not in image_partitions and current_image_name not in initramfs:
|
||||
if current_image_name not in image_partitions and current_image_name != initramfs:
|
||||
for partition in image_partitions:
|
||||
d.appendVarFlag('do_image_complete', 'depends', ' %s:do_image_complete' % partition)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user