ARM: zImage: no need to get the decompressed size from the filesystem
authorNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 19 Apr 2011 19:42:43 +0000 (15:42 -0400)
committerNicolas Pitre <nico@fluxnic.net>
Sat, 7 May 2011 04:07:59 +0000 (00:07 -0400)
commit34cc1a8fe0d3f89f3602b49f1121a99d2bfc5efc
treed8c70249ddd62093a3074996fd8b25b46a4ad211
parentea9df3b168e641e87dbf889afae16390119e4179
ARM: zImage: no need to get the decompressed size from the filesystem

In commit d239b1dc093d the hardcoded 4x estimate for the decompressed
kernel size was replaced by the exact Image file size and passed to
the linker as a symbol value.  Turns out that this is unneeded as the
size is already included at the end of the compressed piggy data.
For those compressed formats that don't include this data, the build
system already takes care of appending it using size_append in
scripts/Makefile.lib.  So let's use that instead.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/compressed/Makefile
arch/arm/boot/compressed/head.S