aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/compressed
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-08-17 09:22:11 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-10-17 04:12:40 -0400
commit60aac93283823b44644c92d0803d821b9d2d987a (patch)
tree8640e4fb247f30743036d85f2c133b74c92400a4 /arch/arm/boot/compressed
parent3f8e288033ec7f52b570efad7c2eb42741f6d710 (diff)
ARM: 7020/1: Check for multiple zreladdrs
Without CONFIG_AUTO_ZRELADDR being set the kernel needs a single zreladdr for building zImages. Bail out if we detect multiple zreladdrs without CONFIG_AUTO_ZRELADDR. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/boot/compressed')
-rw-r--r--arch/arm/boot/compressed/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile
index 0c74a6fab95..a53a333c255 100644
--- a/arch/arm/boot/compressed/Makefile
+++ b/arch/arm/boot/compressed/Makefile
@@ -139,8 +139,16 @@ bad_syms=$$($(CROSS_COMPILE)nm $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \
139 ( echo "following symbols must have non local/private scope:" >&2; \ 139 ( echo "following symbols must have non local/private scope:" >&2; \
140 echo "$$bad_syms" >&2; rm -f $@; false ) 140 echo "$$bad_syms" >&2; rm -f $@; false )
141 141
142check_for_multiple_zreladdr = \
143if [ $(words $(ZRELADDR)) -gt 1 -a "$(CONFIG_AUTO_ZRELADDR)" == "" ]; then \
144 echo 'multiple zreladdrs: $(ZRELADDR)'; \
145 echo 'This needs CONFIG_AUTO_ZRELADDR to be set'; \
146 false; \
147fi
148
142$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.$(suffix_y).o \ 149$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.$(suffix_y).o \
143 $(addprefix $(obj)/, $(OBJS)) $(lib1funcs) FORCE 150 $(addprefix $(obj)/, $(OBJS)) $(lib1funcs) FORCE
151 @$(check_for_multiple_zreladdr)
144 $(call if_changed,ld) 152 $(call if_changed,ld)
145 @$(check_for_bad_syms) 153 @$(check_for_bad_syms)
146 154