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>
This commit is contained in:
parent
3bc7a4f814
commit
f5d35ab640
|
@ -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)])
|
||||
|
|
Loading…
Reference in New Issue