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:53:41 +0000 |
commit | f5d35ab6405e556badf54ae6f6c5138245e42ae6 (patch) | |
tree | d3a0ba01e93acc835babc6182d8643be2b47d30f /meta | |
parent | 3bc7a4f8143860200cd8be535ec1a5ff65607685 (diff) | |
download | poky-f5d35ab6405e556badf54ae6f6c5138245e42ae6.tar.gz |
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.
(From OE-Core rev: dd3418e2db732ca1bc78fd93efa3f08da88a1183)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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): | |||
28 | rootfs_alignment = int(self.d.getVar('IMAGE_ROOTFS_ALIGNMENT', True)) | 28 | rootfs_alignment = int(self.d.getVar('IMAGE_ROOTFS_ALIGNMENT', True)) |
29 | overhead_factor = float(self.d.getVar('IMAGE_OVERHEAD_FACTOR', True)) | 29 | overhead_factor = float(self.d.getVar('IMAGE_OVERHEAD_FACTOR', True)) |
30 | rootfs_req_size = int(self.d.getVar('IMAGE_ROOTFS_SIZE', True)) | 30 | rootfs_req_size = int(self.d.getVar('IMAGE_ROOTFS_SIZE', True)) |
31 | rootfs_extra_space = int(self.d.getVar('IMAGE_ROOTFS_EXTRA_SPACE', True)) | 31 | rootfs_extra_space = eval(self.d.getVar('IMAGE_ROOTFS_EXTRA_SPACE', True)) |
32 | 32 | ||
33 | output = subprocess.check_output(['du', '-ks', | 33 | output = subprocess.check_output(['du', '-ks', |
34 | self.d.getVar('IMAGE_ROOTFS', True)]) | 34 | self.d.getVar('IMAGE_ROOTFS', True)]) |