diff options
-rw-r--r-- | classes/image_types_ota.bbclass | 7 |
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 | ||
147 | IMAGE_CMD_ota-tar () { | 147 | IMAGE_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 | ||
156 | do_otasetup[doc] = "Sets up the base ota rootfs used for subsequent image generation" | 151 | do_otasetup[doc] = "Sets up the base ota rootfs used for subsequent image generation" |