aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Breeds <tony@bakeyournoodle.com>2007-07-04 00:04:31 -0400
committerPaul Mackerras <paulus@samba.org>2007-07-10 08:00:52 -0400
commit4bb092811c72685f5ba26340d393c0717f5a43b1 (patch)
treed482440a1f64f3a5dde51660b1f03deb9281de51
parentbafdb645779c63300763acb383f7b9dd2d427228 (diff)
[POWERPC] Create a dummy zImage if no valid platform has been selected
This simply prevents a build error if no platform is selected. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/powerpc/boot/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index 396821cfaad0..61a6f34ca5ed 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -177,6 +177,11 @@ $(obj)/zImage.initrd.%: vmlinux $(wrapperbits) $(dts)
177$(obj)/zImage.%: vmlinux $(wrapperbits) $(dts) 177$(obj)/zImage.%: vmlinux $(wrapperbits) $(dts)
178 $(call if_changed,wrap,$*,$(dts)) 178 $(call if_changed,wrap,$*,$(dts))
179 179
180# This cannot be in the root of $(src) as the zImage rule always adds a $(obj)
181# prefix
182$(obj)/vmlinux.strip: vmlinux
183 $(STRIP) -s -R .comment $< -o $@
184
180$(obj)/zImage.iseries: vmlinux 185$(obj)/zImage.iseries: vmlinux
181 $(STRIP) -s -R .comment $< -o $@ 186 $(STRIP) -s -R .comment $< -o $@
182 187
@@ -199,6 +204,11 @@ $(obj)/treeImage.initrd.%: vmlinux $(dts) $(wrapperbits)
199$(obj)/treeImage.%: vmlinux $(dts) $(wrapperbits) 204$(obj)/treeImage.%: vmlinux $(dts) $(wrapperbits)
200 $(call if_changed,wrap,treeboot-$*,$(dts)) 205 $(call if_changed,wrap,treeboot-$*,$(dts))
201 206
207# If there isn't a platform selected then just strip the vmlinux.
208ifeq (,$(image-y))
209image-y := vmlinux.strip
210endif
211
202$(obj)/zImage: $(addprefix $(obj)/, $(image-y)) 212$(obj)/zImage: $(addprefix $(obj)/, $(image-y))
203 @rm -f $@; ln $< $@ 213 @rm -f $@; ln $< $@
204$(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y)) 214$(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y))