diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-17 09:22:11 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-10-17 04:12:40 -0400 |
commit | 60aac93283823b44644c92d0803d821b9d2d987a (patch) | |
tree | 8640e4fb247f30743036d85f2c133b74c92400a4 /arch/arm/boot | |
parent | 3f8e288033ec7f52b570efad7c2eb42741f6d710 (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')
-rw-r--r-- | arch/arm/boot/compressed/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 0c74a6fab952..a53a333c255d 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 | ||
142 | check_for_multiple_zreladdr = \ | ||
143 | if [ $(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; \ | ||
147 | fi | ||
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 | ||