summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2019-01-14 14:01:26 +0100
committerMing Liu <liu.ming50@gmail.com>2019-01-14 14:15:06 +0100
commit2782c5c6243736884bcb6f901ed828014601787f (patch)
tree113778668933be3bc50e0617bd481f4282950b02
parentc6cbeda3876003f9d5a179f96a406432549ae68b (diff)
downloadmeta-updater-2782c5c6243736884bcb6f901ed828014601787f.tar.gz
image_types_ota.bbclass: fix a typo
type -> size. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
-rw-r--r--classes/image_types_ota.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index 9883a68..fe3d1d8 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -93,7 +93,7 @@ IMAGE_CMD_ota () {
93IMAGE_TYPEDEP_ota-ext4 = "ota" 93IMAGE_TYPEDEP_ota-ext4 = "ota"
94do_image_ota_ext4[depends] = "e2fsprogs-native:do_populate_sysroot" 94do_image_ota_ext4[depends] = "e2fsprogs-native:do_populate_sysroot"
95IMAGE_CMD_ota-ext4 () { 95IMAGE_CMD_ota-ext4 () {
96 # Calculate image type 96 # Calculate image size
97 OTA_ROOTFS_SIZE=$(calculate_size `du -ks ${OTA_SYSROOT} | cut -f 1` "${IMAGE_OVERHEAD_FACTOR}" "${IMAGE_ROOTFS_SIZE}" "${IMAGE_ROOTFS_MAXSIZE}" `expr ${IMAGE_ROOTFS_EXTRA_SPACE}` "${IMAGE_ROOTFS_ALIGNMENT}") 97 OTA_ROOTFS_SIZE=$(calculate_size `du -ks ${OTA_SYSROOT} | cut -f 1` "${IMAGE_OVERHEAD_FACTOR}" "${IMAGE_ROOTFS_SIZE}" "${IMAGE_ROOTFS_MAXSIZE}" `expr ${IMAGE_ROOTFS_EXTRA_SPACE}` "${IMAGE_ROOTFS_ALIGNMENT}")
98 98
99 if [ ${OTA_ROOTFS_SIZE} -lt 0 ]; then 99 if [ ${OTA_ROOTFS_SIZE} -lt 0 ]; then