diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-05-23 23:22:41 -0700 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-05-25 01:36:31 -0700 |
commit | 367934ada7c081ba3fc95f02dc14c7d6f97bfccb (patch) | |
tree | 430a872bc694b87817896a06f0d9576c9da5ec7b /meta/classes | |
parent | d3f6e1e6106ab539e73c19037915b2e4a5f2efa9 (diff) | |
download | openembedded-core-367934ada7c081ba3fc95f02dc14c7d6f97bfccb.tar.gz openembedded-core-367934ada7c081ba3fc95f02dc14c7d6f97bfccb.tar.bz2 openembedded-core-367934ada7c081ba3fc95f02dc14c7d6f97bfccb.zip |
image_types: add IMAGE_ROOTFS_EXTRA_SPACE
[YOCTO #886]
This address 2 needs after the IMAGE_ROOTFS_SIZE is cleaned up, by
removing the _ext2/3 overrides it allows for a cleaner override
using IMAGE_ROOTFS_SIZE to create a large rootfs, or by setting the
IMAGE_ROOTFS_EXTRA_SPACE, will allow for extra space allocated in Kilobytes
above the base size (determined by du of the rootfs * IMAGE_OVERHEAD_FACTOR,
default of 1.3).
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image_types.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 69f859e39b..601a5fbb4d 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass @@ -13,7 +13,7 @@ def get_imagecmds(d): runimagecmd () { # Image generation code for image type ${type} - ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = $1 * ${IMAGE_OVERHEAD_FACTOR}; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'` + 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}) }'` ${cmd} cd ${DEPLOY_DIR_IMAGE}/ rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.${type} |