Patchwork [1/2] bitbake.conf: use weaker assignment for IMAGE_OVERHEAD_FACTOR

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date April 3, 2013, 6:16 a.m.
Message ID <c8760a76b19e232aac96b8679ab905b9b54bf9c1.1364969701.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/47317/
State New
Headers show

Comments

Qi.Chen@windriver.com - April 3, 2013, 6:16 a.m.
From: Chen Qi <Qi.Chen@windriver.com>

This allows image recipes to set a default value and still provides
an option for users to override it.

For example, we set a default value in core-image-sato.bb.
    IMAGE_OVERHEAD_FACTOR ?= "2.0"
And users who build sato image could still override it in their distro
conf files or local.conf.

[YOCTO #4109]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/conf/bitbake.conf |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index cd5d61e..6d947d8 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -412,7 +412,7 @@  IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}"
 
 # This option allows for a percentage overage of the actual image size rather than a
 # fixed extra space, this is space needed for initial startup and basic operations.
-IMAGE_OVERHEAD_FACTOR ?= "1.3"
+IMAGE_OVERHEAD_FACTOR ??= "1.3"
 # This option allows for adding additional space in K above and beyond what the 
 # IMAGE_OVERHEAD_FACTOR might add. This space is for additional packages, user data, ...
 # To set a fixed size then overriding IMAGE_ROOTFS_SIZE with the max size one wants