diff options
-rw-r--r-- | meta/classes/image.bbclass | 2 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 6 |
2 files changed, 6 insertions, 2 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} |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index d54aa35b82..f6eee7d2af 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -317,7 +317,11 @@ IMAGE_ROOTFS = "${WORKDIR}/rootfs" | |||
317 | IMAGE_BASENAME = "${PN}" | 317 | IMAGE_BASENAME = "${PN}" |
318 | IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}" | 318 | IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}" |
319 | IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}" | 319 | IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}" |
320 | IMAGE_EXTRA_SPACE ?= 81920 | 320 | |
321 | # This option allows for a precentage overage of the actaul image size rather than a | ||
322 | # fixed extra space | ||
323 | IMAGE_OVERHEAD_FACTOR ?= 1.2 | ||
324 | |||
321 | # Comment this option if you want default genext2fs behavior (i.e. create minimal inode number) | 325 | # Comment this option if you want default genext2fs behavior (i.e. create minimal inode number) |
322 | IMAGE_EXTRA_OPTION ?= "-i 8192" | 326 | IMAGE_EXTRA_OPTION ?= "-i 8192" |
323 | 327 | ||