|author||Nicolas Pitre <email@example.com>||2011-04-19 15:42:43 -0400|
|committer||Nicolas Pitre <firstname.lastname@example.org>||2011-05-07 00:07:59 -0400|
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 <email@example.com> Tested-by: Shawn Guo <firstname.lastname@example.org> Tested-by: Tony Lindgren <email@example.com>
Diffstat (limited to 'arch/arm/boot/compressed/Makefile')
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile
index 0c6852d9350..79b5c62746d 100644
@@ -98,8 +98,6 @@ endif
ccflags-y := -fpic -fno-builtin
asflags-y := -Wa,-march=all
-# Provide size of uncompressed kernel to the decompressor via a linker symbol.
-LDFLAGS_vmlinux = --defsym _image_size=$(shell stat -c "%s" $(obj)/../Image)
# Supply ZRELADDR to the decompressor via a linker symbol.
LDFLAGS_vmlinux += --defsym zreladdr=$(ZRELADDR)