summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2018-10-12 16:31:12 +0200
committerStefan Agner <stefan.agner@toradex.com>2018-10-18 15:41:28 +0200
commitc858bd0cfd7c7cb5d656ee4a4465dddfcde4dc4d (patch)
tree0a8099f2245807c813bfecec866bafbb43774866 /classes
parentfcaebee101a27a3b69595ffc894f323cd943e1a3 (diff)
downloadmeta-updater-c858bd0cfd7c7cb5d656ee4a4465dddfcde4dc4d.tar.gz
image_types_ota: use IMGDEPLOYDIR for ota-tar images
Do not write directly to the IMAGE_DEPLOY_DIR but to the new deploy directory IMGDEPLOYDIR. This allows to use the automatic symlinking too. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_ota.bbclass7
1 files changed, 1 insertions, 6 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index 929d092..414f097 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -145,12 +145,7 @@ IMAGE_CMD_ota-ext4 () {
145} 145}
146 146
147IMAGE_CMD_ota-tar () { 147IMAGE_CMD_ota-tar () {
148 rm -rf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.otaimg.tar 148 tar -cf ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ota-tar -C ${OTA_SYSROOT} .
149 tar -cf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.otaimg.tar -C ${OTA_SYSROOT} .
150 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.otaimg.tar
151 ln -s ${IMAGE_NAME}.otaimg.tar ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.otaimg.tar
152 # To fit in with the rest of yocto's image utils, we create a rootfs.ota-tar in the deploy dir
153 cp ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.otaimg.tar ${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.ota-tar
154} 149}
155 150
156do_otasetup[doc] = "Sets up the base ota rootfs used for subsequent image generation" 151do_otasetup[doc] = "Sets up the base ota rootfs used for subsequent image generation"