]> code.ossystems Code Review - openembedded-core.git/commit
bootimg: Fix a math thinko in the block count calculation
authorDarren Hart <dvhart@linux.intel.com>
Wed, 11 Apr 2012 17:51:12 +0000 (10:51 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Apr 2012 22:05:16 +0000 (23:05 +0100)
commit13d5e41a8ad3d8fa1935196c24f51ff5b1ecaa85
tree21fc2d13dc86c4ed3df789227bdbf96a94051f2b
parent96c64075246b2252962cee1e8b6db4b139022f87
bootimg: Fix a math thinko in the block count calculation

Fixes [YOCTO #1852] ... again.

The conversion from sectors to blocks was multiplying by 2 instead
of dividing by 2. Blocks are 1024 bytes, sectors are 512 bytes. The
result was images being much larger than intended.

Reported-by: Tom Zanussi <tom.zanussi@intel.com>
(From OE-Core rev: b35384fa3ca96b31c63d764322215abced2066e4)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Joshua Lock <josh@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>
meta/classes/bootimg.bbclass