From dd3418e2db732ca1bc78fd93efa3f08da88a1183 Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Sun, 26 Jan 2014 18:20:49 +0800 Subject: 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 Signed-off-by: Laurentiu Palcu --- meta/lib/oe/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/oe/image.py') diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py index c4fd558484..0049d46472 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)]) -- cgit v1.2.3