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:54:01 +0200 |
commit | 52c92a10fee6daf0c7c4fc0cd94e47d74bdcbf7a (patch) | |
tree | 76d241620fd50012bdc6eceb4d0f8946246e5140 | |
parent | 7fe5b3fe0a211ad1e431787a69443594fcb01143 (diff) | |
download | meta-updater-52c92a10fee6daf0c7c4fc0cd94e47d74bdcbf7a.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>
-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 ad067da..1209cff 100644 --- a/classes/image_types_ota.bbclass +++ b/classes/image_types_ota.bbclass | |||
@@ -125,4 +125,4 @@ IMAGE_CMD_ota-ext4 () { | |||
125 | mkfs.ext4 -O ^64bit ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ota-ext4 -L otaroot -d ${OTA_SYSROOT} | 125 | mkfs.ext4 -O ^64bit ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ota-ext4 -L otaroot -d ${OTA_SYSROOT} |
126 | } | 126 | } |
127 | 127 | ||
128 | do_image_wic[depends] += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', '%s:do_image_ota_ext4' % d.getVar('IMAGE_BASENAME'), '', d)}" | 128 | do_image_wic[depends] += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', '%s:do_image_ota_ext4' % d.getVar('PN'), '', d)}" |