summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorMing Liu <ming.liu@toradex.com>2020-07-04 10:06:00 +0200
committerMing Liu <ming.liu@toradex.com>2020-07-04 10:06:00 +0200
commitceef86f52d93a0a4b838f05f10e52ee64c0fa214 (patch)
tree8b05d075f2071a2c72e326c3d92c0cf420fec72b /classes
parentb75914c3a82148661f4ce36a64e53d5a0d77c324 (diff)
downloadmeta-updater-ceef86f52d93a0a4b838f05f10e52ee64c0fa214.tar.gz
image_types_ota.bbclass: change IMAGE_BASENAME to PN
When setting intertask dependencies, we should use PN instead of IMAGE_BASENAME to refer to a image recipe, since PN is generated from recipe file name, while IMAGE_BASENAME is a variable that could be changed, it's not guaranteed to always equal to PN. Signed-off-by: Ming Liu <ming.liu@toradex.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ota.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index a8a19b5..36a6a64 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -128,4 +128,4 @@ IMAGE_CMD_ota-ext4 () {
128 mkfs.ext4 -O ^64bit ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ota-ext4 -L otaroot -d ${OTA_SYSROOT} 128 mkfs.ext4 -O ^64bit ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ota-ext4 -L otaroot -d ${OTA_SYSROOT}
129} 129}
130 130
131do_image_wic[depends] += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', '%s:do_image_ota_ext4' % d.getVar('IMAGE_BASENAME'), '', d)}" 131do_image_wic[depends] += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', '%s:do_image_ota_ext4' % d.getVar('PN'), '', d)}"