diff options
Diffstat (limited to 'classes/sdcard_image-porter-ota.bbclass')
-rw-r--r-- | classes/sdcard_image-porter-ota.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/sdcard_image-porter-ota.bbclass b/classes/sdcard_image-porter-ota.bbclass index 5909b44..a9619dc 100644 --- a/classes/sdcard_image-porter-ota.bbclass +++ b/classes/sdcard_image-porter-ota.bbclass | |||
@@ -59,9 +59,6 @@ IMAGE_CMD_porter-sdimg-ota () { | |||
59 | dd if=${SDIMG_OTA_ROOTFS} of=${SDIMG_OTA} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync | 59 | dd if=${SDIMG_OTA_ROOTFS} of=${SDIMG_OTA} conv=notrunc seek=1 bs=$(expr 1024 \* ${BOOT_SPACE_ALIGNED} + ${IMAGE_ROOTFS_ALIGNMENT} \* 1024) && sync && sync |
60 | fi | 60 | fi |
61 | 61 | ||
62 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.porter-sdimg-ota | ||
63 | ln -s ${IMAGE_NAME}.porter-sdimg-ota ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.porter-sdimg-ota | ||
64 | |||
65 | # Optionally apply compression | 62 | # Optionally apply compression |
66 | case "${SDIMG_OTA_COMPRESSION}" in | 63 | case "${SDIMG_OTA_COMPRESSION}" in |
67 | "gzip") | 64 | "gzip") |
@@ -74,5 +71,8 @@ IMAGE_CMD_porter-sdimg-ota () { | |||
74 | xz -k "${SDIMG_OTA}" | 71 | xz -k "${SDIMG_OTA}" |
75 | ;; | 72 | ;; |
76 | esac | 73 | esac |
74 | |||
75 | rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.rootfs.porter-sdimg-ota | ||
76 | ln -s ${IMAGE_NAME}.rootfs.porter-sdimg-ota ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.rootfs.porter-sdimg-ota | ||
77 | } | 77 | } |
78 | 78 | ||