summaryrefslogtreecommitdiffstats
path: root/meta-sota/classes/sdcard_image-rpi-ota.bbclass
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2016-11-04 10:46:10 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2016-11-04 10:46:10 +0000
commit0fdd877983ec91e6df2f97dbf609515430cddcfa (patch)
treecaaeb24e8fc0bc2aa2448f855bd441e017a36f22 /meta-sota/classes/sdcard_image-rpi-ota.bbclass
parent77c89adf2f5a6480440d269317c46168dbda24f8 (diff)
parent01f7c6a5f74e8baaa452b9341eaace69bd522412 (diff)
Merge "OTA-enabled live image for Porter board"
Diffstat (limited to 'meta-sota/classes/sdcard_image-rpi-ota.bbclass')
-rw-r--r--meta-sota/classes/sdcard_image-rpi-ota.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-sota/classes/sdcard_image-rpi-ota.bbclass b/meta-sota/classes/sdcard_image-rpi-ota.bbclass
index 12c1f40..2fa03c4 100644
--- a/meta-sota/classes/sdcard_image-rpi-ota.bbclass
+++ b/meta-sota/classes/sdcard_image-rpi-ota.bbclass
@@ -79,7 +79,7 @@ IMAGE_CMD_rpi-sdimg-ota[vardepsexclude] += "DATETIME"
IMAGE_CMD_rpi-sdimg-ota () {
# Align partitions
- OTAROOT_SIZE=`du -Lb ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.${SDIMG_OTA_ROOTFS_TYPE} | cut -f1`
+ OTAROOT_SIZE=`du -Lb ${SDIMG_OTA_ROOTFS} | cut -f1`
OTAROOT_SIZE=$(expr ${OTAROOT_SIZE} / 1024 + 1)
BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE} + ${IMAGE_ROOTFS_ALIGNMENT} - 1)
BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE_ALIGNED} - ${BOOT_SPACE_ALIGNED} % ${IMAGE_ROOTFS_ALIGNMENT})