diff options
author | Ming Liu <ming.liu@toradex.com> | 2020-07-04 10:06:00 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2020-07-08 15:53:57 +0200 |
commit | 29548b556744ee4472308a1d3faeb8c931313a1a (patch) | |
tree | 82386d9f4c211d868b57d66c5b4b7baa03fe6620 /classes | |
parent | decd9bcf1f613702d59dec4d0d539d60c5fa2d9d (diff) | |
download | meta-updater-29548b556744ee4472308a1d3faeb8c931313a1a.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.bbclass | 2 |
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 | ||
131 | do_image_wic[depends] += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', '%s:do_image_ota_ext4' % d.getVar('IMAGE_BASENAME'), '', d)}" | 131 | do_image_wic[depends] += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', '%s:do_image_ota_ext4' % d.getVar('PN'), '', d)}" |