diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-01-26 18:20:49 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-11 11:50:29 +0000 |
commit | dd3418e2db732ca1bc78fd93efa3f08da88a1183 (patch) | |
tree | 2ab97a840dacac5eb4a78b26837b9ca48f03f331 /meta/lib/oe/image.py | |
parent | 17a0a8f44fe344ab1ae49730d9f17705b43987e5 (diff) | |
download | openembedded-core-dd3418e2db732ca1bc78fd93efa3f08da88a1183.tar.gz openembedded-core-dd3418e2db732ca1bc78fd93efa3f08da88a1183.tar.bz2 openembedded-core-dd3418e2db732ca1bc78fd93efa3f08da88a1183.zip |
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@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Diffstat (limited to 'meta/lib/oe/image.py')
-rw-r--r-- | meta/lib/oe/image.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)]) |