diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-03-02 12:08:55 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-03-08 19:18:48 -0500 |
commit | 1cf7cf06c92ba46ac0e0654ad8aad4c93ae412db (patch) | |
tree | 4557716baa2e405e53de832a9e2721ea622461af /arch | |
parent | d7ed36a4ea84e3a850f9932e2058ceef987d1acd (diff) |
ARM: 6778/1: compressed/head.S: make LDFLAGS_vmlinux into a recursively expanded variable
The simply expanded variable may be evaluated before the target file for
the stat command is up to date or even exists. Switching to a recursively
expanded variable move the execution of the stat command to the location
where LDFLAGS_vmlinux is actually used, fixing the dependency issue
introduced by patch #6746/1.
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/compressed/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 9d328be6e5e3..3c0c68ff6a80 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile | |||
@@ -84,7 +84,7 @@ EXTRA_CFLAGS := -fpic -fno-builtin | |||
84 | EXTRA_AFLAGS := -Wa,-march=all | 84 | EXTRA_AFLAGS := -Wa,-march=all |
85 | 85 | ||
86 | # Provide size of uncompressed kernel to the decompressor via a linker symbol. | 86 | # Provide size of uncompressed kernel to the decompressor via a linker symbol. |
87 | LDFLAGS_vmlinux := --defsym _image_size=$(shell stat -c "%s" $(obj)/../Image) | 87 | LDFLAGS_vmlinux = --defsym _image_size=$(shell stat -c "%s" $(obj)/../Image) |
88 | # Supply ZRELADDR to the decompressor via a linker symbol. | 88 | # Supply ZRELADDR to the decompressor via a linker symbol. |
89 | ifneq ($(CONFIG_AUTO_ZRELADDR),y) | 89 | ifneq ($(CONFIG_AUTO_ZRELADDR),y) |
90 | LDFLAGS_vmlinux += --defsym zreladdr=$(ZRELADDR) | 90 | LDFLAGS_vmlinux += --defsym zreladdr=$(ZRELADDR) |