diff options
author | Darren Hart <dvhart@linux.intel.com> | 2012-04-11 10:51:11 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-14 23:11:38 +0100 |
commit | d1c5de9ccb93ac30afcd98126fff4a74e243b6f9 (patch) | |
tree | f1e2dcc5e3b0778111e1ac1d63ff7e52a7b8c704 /meta/recipes-devtools/binutils/binutils-cross_2.21.1a.bb | |
parent | 4274ebdd009163bd199f6cb08df373fdfeb67178 (diff) | |
download | poky-d1c5de9ccb93ac30afcd98126fff4a74e243b6f9.tar.gz |
bootimg: Account for FAT filesystem overhead in image size
Fixes [YOCTO #1852]
The bootimg class wasn't accounting for non-trivial amount of space
required by the directory entries and FATs for the FAT filesystem.
This patch attempts to make an accurate prediction of FAT overhead and
adjusts the image size accordingly. It assumes no more than 16 directory
entries per directory (which fit in a single sector). It also assumes
8.3 filenames. With the ceiling functions rounding up to full sectors
and tracks, these assumptions seem reasonable.
In order to ensure the calculations are accurate, this patch forces the
FAT size to 32, rather than allowing mkdosfs to automatically select 12,
16, or 32 depending on the image being built.
Tested by setting BOOTIMG_EXTRA_SPACE=0 and building core-image-minimal
and core-image-sato for fri2-noemgd from meta-intel.
(From OE-Core rev: 68aa18609c10a3ae2f738930c933fa2a95ce8959)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Backported to edison by Darren Hart.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-cross_2.21.1a.bb')
0 files changed, 0 insertions, 0 deletions