]> 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, 25 Jan 2012 05:20:54 +0000 (21:20 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 25 Jan 2012 14:29:45 +0000 (14:29 +0000)
commitb35384fa3ca96b31c63d764322215abced2066e4
treebf99ac4ce20ea37c3df56fd1f24c275029bd0006
parent07e34778fc74126af1380bf249fd34a5e3df12c2
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>
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>
meta/classes/bootimg.bbclass