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 /classes | |
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 'classes')
-rw-r--r-- | classes/image_types_ota.bbclass | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass index 414f097..ed1d579 100644 --- a/classes/image_types_ota.bbclass +++ b/classes/image_types_ota.bbclass | |||
@@ -136,12 +136,8 @@ IMAGE_CMD_ota-ext4 () { | |||
136 | eval COUNT=\"$MIN_COUNT\" | 136 | eval COUNT=\"$MIN_COUNT\" |
137 | fi | 137 | fi |
138 | 138 | ||
139 | rm -rf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.otaimg | 139 | dd if=/dev/zero of=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ota-ext4 seek=${OTA_ROOTFS_SIZE} count=$COUNT bs=1024 |
140 | sync | 140 | mkfs.ext4 -O ^64bit ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ota-ext4 -L otaroot -d ${OTA_SYSROOT} |
141 | dd if=/dev/zero of=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.otaimg seek=${OTA_ROOTFS_SIZE} count=$COUNT bs=1024 | ||
142 | mkfs.ext4 -O ^64bit ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.otaimg -L otaroot -d ${OTA_SYSROOT} | ||
143 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.otaimg | ||
144 | ln -s ${IMAGE_NAME}.otaimg ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.otaimg | ||
145 | } | 141 | } |
146 | 142 | ||
147 | IMAGE_CMD_ota-tar () { | 143 | IMAGE_CMD_ota-tar () { |