[OE-core] poky ref variable glossary seems to define IMAGE_ROOTFS_SIZE inaccurately

Robert P. J. Day rpjday at crashcourse.ca
Sat Jun 30 11:32:41 UTC 2012


  here's the current definition:

http://www.yoctoproject.org/docs/current/poky-ref-manual/poky-ref-manual.html#var-IMAGE_ROOTFS_SIZE

but if you look at the formula that's used in
meta/classes/image_types.bbclass:

ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{base_size = $1 *
${IMAGE_OVERHEAD_FACTOR} + ${IMAGE_ROOTFS_ALIGNMENT} - 1; base_size -=
base_size % ${IMAGE_ROOTFS_ALIGNMENT}; print ((base_size >
${IMAGE_ROOTFS_SIZE} ? base_size : ${IMAGE_ROOTFS_SIZE}) +
${IMAGE_ROOTFS_EXTRA_SPACE}) }'`

  the value of IMAGE_ROOTFS_SIZE is simply one of the (possibly
user-supplied) values that is combined to produce the *actual* rootfs
size that is stored in ROOTFS_SIZE (and used later).  i don't think
that's abundantly clear from the glossary entry, which initially
implies that IMAGE_ROOTFS_SIZE is the eventual size of the image.

  or am i just reading this the wrong way?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================




More information about the Openembedded-core mailing list