generic-poky/meta
Darren Hart 4274ebdd00 bootimg: Use mcopy to construct the hddimg
Fixes [YOCTO 2138]

The initial directory support (-d) added to mkdosfs has proven to be incomplete
and non-compliant with FAT. Rather than continue to maintain this feature and
work around the various issues, we can use mcopy to construct the image.

bootimg.bbclass already depends on mtools-native (although it may not have
needed to previously). No new dependencies are introduced. The image created
passes dosfsck cleanly. Remove the call to dosfsck.

mcopy reported an error with the image we were creating:
Total number of sectors (107574) not a multiple of sectors per track (32)!

Add some logic to ensure the total sector count is an integral number of sectors
per track, including forcing the logical sector size to 512 in the mkdosfs
command.

The du -bks arguments are contradictory, -b is equivalent to "--apparent-size
--block-size=1" and -k is --block-size=1K. If reordered, -kbs will report the
disk usage in bytes insteadk of 1k blocks. Eliminate the ambiguity by using:
du --apparent-size -ks

(From OE-Core rev: 92d2ea1a306354c6565a1b05b51b5719e481840f)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Nitin A. Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Backported to poky 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:10:49 +01:00
..
classes bootimg: Use mcopy to construct the hddimg 2012-04-14 23:10:49 +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