]> code.ossystems Code Review - openembedded-core.git/commit
image_types.bbclass: Round up ROOTFS_SIZE after base_size check
authorAndrei Gherzan <andrei@gherzan.ro>
Mon, 10 Sep 2012 16:26:27 +0000 (19:26 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Sep 2012 08:49:53 +0000 (09:49 +0100)
commit726c1617077da6b49606ac1a2cae64d2d02e6214
tree95278a1729490c2a680b652a3642e57a2305e164
parentc3cff64708cb078405f5ecd9bca6801031786bc4
image_types.bbclass: Round up ROOTFS_SIZE after base_size check

If we round up ROOTFS_SIZE to IMAGE_ROOTFS_ALIGNMENT before checking if
base_size is greater then IMAGE_ROOTFS_SIZE, we can end up adding an
unaligned value to IMAGE_ROOTFS_SIZE. Obviously, if
IMAGE_ROOTFS_EXTRA_SPACE was overwritten with an unaligned value. So
let's add the round up code after the base_size calculus and it's
comparison.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/image_types.bbclass