diff options
author | Saul Wold <Saul.Wold@intel.com> | 2010-09-08 16:25:25 -0700 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-09-08 16:36:53 -0700 |
commit | 1f65837e7875774a754dda2447cc3b6687c8bc3a (patch) | |
tree | f9b2638da3937af6ef666c9998f4ea46ac385d76 /meta/classes | |
parent | 7400ece67408963c89e30443d813e9025a74c92f (diff) | |
download | poky-1f65837e7875774a754dda2447cc3b6687c8bc3a.tar.gz |
image.bbclass: change IMAGE_EXTRA_SPACE to IMAGE_OVERHEAD_FACTOR
This change allows the IMAGE_OVERHEAD_FACTOR (default to 1.2) to
adjust dynamicly how much space to add for each image, thus there
is 20% overhead space by default.
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 9f076a68e7..1b34ac423b 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -128,7 +128,7 @@ fakeroot do_rootfs () { | |||
128 | 128 | ||
129 | ${IMAGE_PREPROCESS_COMMAND} | 129 | ${IMAGE_PREPROCESS_COMMAND} |
130 | 130 | ||
131 | ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = ${IMAGE_EXTRA_SPACE} + $1; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'` | 131 | ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{size = $1 * ${IMAGE_OVERHEAD_FACTOR}; print (size > ${IMAGE_ROOTFS_SIZE} ? size : ${IMAGE_ROOTFS_SIZE}) }'` |
132 | ${@get_imagecmds(d)} | 132 | ${@get_imagecmds(d)} |
133 | 133 | ||
134 | ${IMAGE_POSTPROCESS_COMMAND} | 134 | ${IMAGE_POSTPROCESS_COMMAND} |