summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2011-06-21 12:08:43 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-30 20:56:35 +0100
commit65c68925b576d83b14ea711b027e4198744e81a3 (patch)
treee0247ce91039f88271494516285226b420aa2ead /meta/classes
parent3e6746aa1df6e7eba8b191c27bc8933bd35e4201 (diff)
downloadpoky-65c68925b576d83b14ea711b027e4198744e81a3.tar.gz
image-types.bbclass: get the image size in the whole number
Avoid fractions like 80.72 and round them to whole numbers. (From OE-Core rev: 70b80215a08b2f1a3a813ac9a3948e39a1b26dd4) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image_types.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index edd6e1d514..dd696126ec 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -13,7 +13,7 @@ def get_imagecmds(d):
13 13
14runimagecmd () { 14runimagecmd () {
15 # Image generation code for image type ${type} 15 # Image generation code for image type ${type}
16 ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = $1 * ${IMAGE_OVERHEAD_FACTOR} + ${IMAGE_ROOTFS_EXTRA_SPACE}; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'` 16 ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = $1 * ${IMAGE_OVERHEAD_FACTOR} + ${IMAGE_ROOTFS_EXTRA_SPACE}; OFMT = "%.0f" ; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'`
17 ${cmd} 17 ${cmd}
18 cd ${DEPLOY_DIR_IMAGE}/ 18 cd ${DEPLOY_DIR_IMAGE}/
19 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.${type} 19 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.${type}