diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2018-10-15 13:55:47 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2018-10-18 15:41:28 +0200 |
commit | f07be1805cc22b5428ff529b705731360b485d06 (patch) | |
tree | 18ec5c89956106592fbde095fb6ce95e062f946f /scripts | |
parent | c858bd0cfd7c7cb5d656ee4a4465dddfcde4dc4d (diff) | |
download | meta-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')
-rw-r--r-- | scripts/lib/wic/plugins/source/otaimage.py | 4 | ||||
-rw-r--r-- | scripts/qemucommand.py | 2 |
2 files changed, 3 insertions, 3 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 |
diff --git a/scripts/qemucommand.py b/scripts/qemucommand.py index 86362f7..4abfd4e 100644 --- a/scripts/qemucommand.py +++ b/scripts/qemucommand.py | |||
@@ -6,7 +6,7 @@ from subprocess import check_output, CalledProcessError | |||
6 | 6 | ||
7 | EXTENSIONS = { | 7 | EXTENSIONS = { |
8 | 'intel-corei7-64': 'wic', | 8 | 'intel-corei7-64': 'wic', |
9 | 'qemux86-64': 'otaimg' | 9 | 'qemux86-64': 'ota-ext4' |
10 | } | 10 | } |
11 | 11 | ||
12 | 12 | ||