summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/source/otaimage.py
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2018-10-15 13:55:47 +0200
committerStefan Agner <stefan.agner@toradex.com>2018-10-18 15:41:28 +0200
commitf07be1805cc22b5428ff529b705731360b485d06 (patch)
tree18ec5c89956106592fbde095fb6ce95e062f946f /scripts/lib/wic/plugins/source/otaimage.py
parentc858bd0cfd7c7cb5d656ee4a4465dddfcde4dc4d (diff)
downloadmeta-updater-f07be1805cc22b5428ff529b705731360b485d06.tar.gz
image_types_ota: use IMGDEPLOYDIR for ota-ext4 images
Do not write directly to the IMAGE_DEPLOY_DIR but to the new deploy directory IMGDEPLOYDIR. Also change the image ending to match the image type name (from otaimg to ota-ext4). This allows to use the automatic symlinking and output artefact management too. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'scripts/lib/wic/plugins/source/otaimage.py')
-rw-r--r--scripts/lib/wic/plugins/source/otaimage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/otaimage.py b/scripts/lib/wic/plugins/source/otaimage.py
index ee8088b..4b30776 100644
--- a/scripts/lib/wic/plugins/source/otaimage.py
+++ b/scripts/lib/wic/plugins/source/otaimage.py
@@ -39,13 +39,13 @@ class OTAImagePlugin(RawCopyPlugin):
39 Called to do the actual content population for a partition i.e. it 39 Called to do the actual content population for a partition i.e. it
40 'prepares' the partition to be incorporated into the image. 40 'prepares' the partition to be incorporated into the image.
41 """ 41 """
42 bootimg_dir = get_bitbake_var("DEPLOY_DIR_IMAGE") 42 bootimg_dir = get_bitbake_var("IMGDEPLOYDIR")
43 if not bootimg_dir: 43 if not bootimg_dir:
44 logger.error("Couldn't find DEPLOY_DIR_IMAGE, exiting\n") 44 logger.error("Couldn't find DEPLOY_DIR_IMAGE, exiting\n")
45 45
46 logger.debug('Bootimg dir: %s' % bootimg_dir) 46 logger.debug('Bootimg dir: %s' % bootimg_dir)
47 47
48 src = bootimg_dir + "/" + get_bitbake_var("IMAGE_LINK_NAME") + ".otaimg" 48 src = bootimg_dir + "/" + get_bitbake_var("IMAGE_LINK_NAME") + ".ota-ext4"
49 49
50 logger.debug('Preparing partition using image %s' % (src)) 50 logger.debug('Preparing partition using image %s' % (src))
51 source_params['file'] = src 51 source_params['file'] = src