summaryrefslogtreecommitdiffstats
path: root/classes/sdcard_image-rpi-ota.bbclass
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2016-11-02 12:05:44 +0100
committerAnton Gerasimov <anton@advancedtelematic.com>2016-11-02 12:05:44 +0100
commit14ccbd8deca55fc611a502dc8ee817acd621d1f2 (patch)
tree10c8ef61998aa0c33df4b3da1fb622771eacf05c /classes/sdcard_image-rpi-ota.bbclass
parenta212922c56f6e7b13dcbbc83270d2444cde4d8f2 (diff)
downloadmeta-updater-14ccbd8deca55fc611a502dc8ee817acd621d1f2.tar.gz
OTA-enabled live image for Porter board
Bug-AGL: SPEC-307 Change-Id: I74ddc2622048a50243b82fbf023aa05c33322af4 Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
Diffstat (limited to 'classes/sdcard_image-rpi-ota.bbclass')
-rw-r--r--classes/sdcard_image-rpi-ota.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/sdcard_image-rpi-ota.bbclass b/classes/sdcard_image-rpi-ota.bbclass
index 12c1f40..2fa03c4 100644
--- a/classes/sdcard_image-rpi-ota.bbclass
+++ b/classes/sdcard_image-rpi-ota.bbclass
@@ -79,7 +79,7 @@ IMAGE_CMD_rpi-sdimg-ota[vardepsexclude] += "DATETIME"
79IMAGE_CMD_rpi-sdimg-ota () { 79IMAGE_CMD_rpi-sdimg-ota () {
80 80
81 # Align partitions 81 # Align partitions
82 OTAROOT_SIZE=`du -Lb ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.${SDIMG_OTA_ROOTFS_TYPE} | cut -f1` 82 OTAROOT_SIZE=`du -Lb ${SDIMG_OTA_ROOTFS} | cut -f1`
83 OTAROOT_SIZE=$(expr ${OTAROOT_SIZE} / 1024 + 1) 83 OTAROOT_SIZE=$(expr ${OTAROOT_SIZE} / 1024 + 1)
84 BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE} + ${IMAGE_ROOTFS_ALIGNMENT} - 1) 84 BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE} + ${IMAGE_ROOTFS_ALIGNMENT} - 1)
85 BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE_ALIGNED} - ${BOOT_SPACE_ALIGNED} % ${IMAGE_ROOTFS_ALIGNMENT}) 85 BOOT_SPACE_ALIGNED=$(expr ${BOOT_SPACE_ALIGNED} - ${BOOT_SPACE_ALIGNED} % ${IMAGE_ROOTFS_ALIGNMENT})