[oe-commits] Hongxu Jia : lib/oe/image.py: fix get rootfs_extra_space failed
git at git.openembedded.org
git at git.openembedded.org
Tue Feb 11 11:57:02 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: dd3418e2db732ca1bc78fd93efa3f08da88a1183
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=dd3418e2db732ca1bc78fd93efa3f08da88a1183
Author: Hongxu Jia <hongxu.jia at windriver.com>
Date: Sun Jan 26 18:20:49 2014 +0800
lib/oe/image.py: fix get rootfs_extra_space failed
The value of IMAGE_ROOTFS_EXTRA_SPACE is "0 + 51200",
we should use eval rather than int in python.
Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
---
meta/lib/oe/image.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py
index c4fd558..0049d46 100644
--- a/meta/lib/oe/image.py
+++ b/meta/lib/oe/image.py
@@ -28,7 +28,7 @@ class Image(object):
rootfs_alignment = int(self.d.getVar('IMAGE_ROOTFS_ALIGNMENT', True))
overhead_factor = float(self.d.getVar('IMAGE_OVERHEAD_FACTOR', True))
rootfs_req_size = int(self.d.getVar('IMAGE_ROOTFS_SIZE', True))
- rootfs_extra_space = int(self.d.getVar('IMAGE_ROOTFS_EXTRA_SPACE', True))
+ rootfs_extra_space = eval(self.d.getVar('IMAGE_ROOTFS_EXTRA_SPACE', True))
output = subprocess.check_output(['du', '-ks',
self.d.getVar('IMAGE_ROOTFS', True)])
More information about the Openembedded-commits
mailing list