diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image_types.bbclass | 2 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 4 |
2 files changed, 5 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): | |||
13 | 13 | ||
14 | runimagecmd () { | 14 | runimagecmd () { |
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}; 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}; 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} |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 18028f3001..35fd6f864f 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -350,6 +350,10 @@ IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}" | |||
350 | # This option allows for a precentage overage of the actaul image size rather than a | 350 | # This option allows for a precentage overage of the actaul image size rather than a |
351 | # fixed extra space | 351 | # fixed extra space |
352 | IMAGE_OVERHEAD_FACTOR ?= 1.3 | 352 | IMAGE_OVERHEAD_FACTOR ?= 1.3 |
353 | # This option allow for adding addition space in K above and beyond what the | ||
354 | # IMAGE_OVERHEAD_FACTOR might add. To set a fixed size then overrideing IMAGE_ROOTFS_SIZE | ||
355 | # with the max size one wants should do the trick | ||
356 | IMAGE_ROOTFS_EXTRA_SPACE = "0" | ||
353 | 357 | ||
354 | EXTRA_IMAGEDEPENDS = "" | 358 | EXTRA_IMAGEDEPENDS = "" |
355 | 359 | ||