generic-poky/meta
Darren Hart d1c5de9ccb 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>
2012-04-14 23:11:38 +01:00
..
classes bootimg: Account for FAT filesystem overhead in image size 2012-04-14 23:11:38 +01:00
conf multilib.conf: add missing entry for shadow-sysroot 2012-01-30 16:49:48 +00:00
files files/device_table-minimal.txt: add /dev/kmsg 2012-01-30 16:38:13 +00:00
lib/oe lib/oe/terminal: add support for XFCE's terminal emulator 2012-01-30 16:38:07 +00:00
recipes-bsp apmd: use ${HOST_SYS}-libtool 2012-01-30 16:37:51 +00:00
recipes-connectivity openssl-0.9.8: Update to 0.9.8s 2012-01-30 16:49:48 +00:00
recipes-core task-sdk-host-nativesdk: add autotools nativesdk to meta-toolchain 2012-02-28 14:56:28 +00:00
recipes-devtools gnu-config: Only apply path transformations in the non-native/non-nativesdk case 2012-03-04 05:39:04 -08:00
recipes-extended sudo: backport patch to address CVE 2012-0809 2012-03-01 15:59:58 +00:00
recipes-gnome gnome-doc-utils: Add missing glib-2.0 dependency 2012-01-30 16:38:07 +00:00
recipes-graphics clutter-1.6: make build for armv4t 2012-01-30 16:43:51 +00:00
recipes-kernel linux-tools: don't build perf when GPLv3 in INCOMPATIBLE_LICENSE 2012-02-24 17:39:59 +00:00
recipes-multimedia alsa-lib: use PKGSUFFIX for every package to resolve multiple runtime providers from target and nativesdk 2012-01-30 16:43:41 +00:00
recipes-qt qt4-x11-free: Fix broken regexes in qt4-x11-free's recipe. 2012-01-30 16:38:01 +00:00
recipes-rt rt-tests: use an explicit commit ID 2011-08-12 21:07:02 +01:00
recipes-sato eds-tools: Convert from BZR to GIT Repo 2012-03-04 05:38:36 -08:00
recipes-support libgpg-error: add BBCLASSEXTEND native for libgcrypts and gnutls-native 2012-03-04 05:38:22 -08:00
site site/ix86-common: fix an error 2012-02-23 17:16:47 +00:00
COPYING.MIT Add missing licence files (COPYING.MIT) 2006-07-23 13:52:32 +00:00
recipes.txt meta/recipes.txt: correct Qt capitalisation 2011-09-07 22:54:17 +01:00