diff options
-rw-r--r-- | recipes-core/images/dm-verity-image-initramfs.bb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/recipes-core/images/dm-verity-image-initramfs.bb b/recipes-core/images/dm-verity-image-initramfs.bb index 187aeae..78f7b49 100644 --- a/recipes-core/images/dm-verity-image-initramfs.bb +++ b/recipes-core/images/dm-verity-image-initramfs.bb | |||
@@ -19,7 +19,14 @@ IMAGE_FEATURES = "" | |||
19 | IMAGE_LINGUAS = "" | 19 | IMAGE_LINGUAS = "" |
20 | 20 | ||
21 | # Can we somehow inspect reverse dependencies to avoid these variables? | 21 | # Can we somehow inspect reverse dependencies to avoid these variables? |
22 | do_image[depends] += "${DM_VERITY_IMAGE}:do_image_${DM_VERITY_IMAGE_TYPE}" | 22 | python __anonymous() { |
23 | verity_image = d.getVar('DM_VERITY_IMAGE') | ||
24 | verity_type = d.getVar('DM_VERITY_IMAGE_TYPE') | ||
25 | |||
26 | if verity_image and verity_type: | ||
27 | dep = ' %s:do_image_%s' % (verity_image, verity_type.replace('-', '_')) | ||
28 | d.appendVarFlag('do_image', 'depends', dep) | ||
29 | } | ||
23 | 30 | ||
24 | # Ensure dm-verity.env is updated also when rebuilding DM_VERITY_IMAGE | 31 | # Ensure dm-verity.env is updated also when rebuilding DM_VERITY_IMAGE |
25 | do_image[nostamp] = "1" | 32 | do_image[nostamp] = "1" |