]> code.ossystems Code Review - meta-freescale.git/commit
image_types_fsl: Align SD partition and optimize final SD image
authorAndrei Gherzan <andrei@gherzan.ro>
Wed, 24 Oct 2012 18:28:49 +0000 (21:28 +0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 29 Oct 2012 18:13:38 +0000 (16:13 -0200)
commitb406db56592e9c66a41c0502fc3833019bfcb688
tree193d7058f8a68d1ca78aa670aa6f37eda76c6b22
parentfbfe001cce0874e3ccab4dac2d0e9149b815fe5e
image_types_fsl: Align SD partition and optimize final SD image

SD image file was 4G in size but actually the rootfs partition was only
60MB (in some images).
The image file size is not fixed anymore but calculated inside this
class. In this way we will setup the partition for rootfs to fit the
ext file used as SDIMG_ROOTFS. By default the free space is calculated
with IMAGE_OVERHEAD_FACTOR which is by default 1.3. If more free space
is needed this can be overwritten.
IMAGE_ROOTFS_ALIGNMENT set at 4096. This should be the best value for a
SD card.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
meta-fsl-arm/classes/image_types_fsl.bbclass