mirror of
https://git.yoctoproject.org/poky
synced 2026-04-10 14:02:21 +02:00
lib/oe/image.py: fix image size calculation routine
The IMAGE_ROOTFS_EXTRA_SPACE value was not correctly added to the base size. (From OE-Core rev: f3ac2a68ae0ae9bdf2a03c1b6d0f83c9918d58bd) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ce12c1bf9f
commit
b76f240df0
@@ -34,8 +34,8 @@ class Image(object):
|
||||
self.d.getVar('IMAGE_ROOTFS', True)])
|
||||
size_kb = int(output.split()[0])
|
||||
base_size = size_kb * overhead_factor
|
||||
if base_size < rootfs_req_size:
|
||||
base_size = rootfs_req_size + rootfs_extra_space
|
||||
base_size = (base_size, rootfs_req_size)[base_size < rootfs_req_size] + \
|
||||
rootfs_extra_space
|
||||
|
||||
if base_size != int(base_size):
|
||||
base_size = int(base_size + 1)
|
||||
|
||||
Reference in New Issue
Block a user