* [PATCH] Create a dummy zImage if no valid platform has been selected.
@ 2007-06-06 7:01 Tony Breeds
2007-06-06 9:27 ` Segher Boessenkool
0 siblings, 1 reply; 2+ messages in thread
From: Tony Breeds @ 2007-06-06 7:01 UTC (permalink / raw)
To: LinuxPPC-dev
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
---
This is mostly aimed at getting allnoconfig to complete.
arch/powerpc/boot/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
Index: working/arch/powerpc/boot/Makefile
===================================================================
--- working.orig/arch/powerpc/boot/Makefile
+++ working/arch/powerpc/boot/Makefile
@@ -188,6 +188,9 @@ $(obj)/zImage.%: vmlinux $(wrapperbits)
$(obj)/zImage.ps3: vmlinux
$(STRIP) -s -R .comment $< -o $@
+$(obj)/zImage.strip: vmlinux
+ $(STRIP) -s -R .comment $< -o $@
+
$(obj)/zImage.initrd.ps3: vmlinux
@echo " WARNING zImage.initrd.ps3 not supported (yet)"
@@ -213,6 +216,11 @@ $(obj)/treeImage.initrd.%: vmlinux $(dts
$(obj)/treeImage.%: vmlinux $(dts) $(wrapperbits)
$(call if_changed,wrap,treeboot-$*,$(dts))
+# If we don't have a platform selected then just strip the vmlinux.
+ifeq ("$(image-y)", "")
+image-y := zImage.strip
+endif
+
$(obj)/zImage: $(addprefix $(obj)/, $(image-y))
@rm -f $@; ln $< $@
$(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y))
Yours Tony
linux.conf.au http://linux.conf.au/ || http://lca2008.linux.org.au/
Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Create a dummy zImage if no valid platform has been selected.
2007-06-06 7:01 [PATCH] Create a dummy zImage if no valid platform has been selected Tony Breeds
@ 2007-06-06 9:27 ` Segher Boessenkool
0 siblings, 0 replies; 2+ messages in thread
From: Segher Boessenkool @ 2007-06-06 9:27 UTC (permalink / raw)
To: Tony Breeds; +Cc: LinuxPPC-dev
> +$(obj)/zImage.strip: vmlinux
> + $(STRIP) -s -R .comment $< -o $@
Bad name, you are not creating a stripped zImage, but
a stripped vmlinux.
> +# If we don't have a platform selected then just strip the vmlinux.
Why do anything at all when no platform is selected?
> +ifeq ("$(image-y)", "")
No quotes needed, standard style is
ifeq (,$(image-y))
> +image-y := zImage.strip
> +endif
> +
> $(obj)/zImage: $(addprefix $(obj)/, $(image-y))
> @rm -f $@; ln $< $@
Perhaps the minimal change (this is a degenerated case
anyway) would be to make this command non-failing? Or
maybe that's not desired for "normal" builds? Hard to
see how it ever could go wrong then, but that's wishful
thinking. Maybe ln -sf would be best, it would just
create a dangling softlink in the allno case (and remove
the need for the rm command, too).
What do y'all think?
Segher
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-06 9:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 7:01 [PATCH] Create a dummy zImage if no valid platform has been selected Tony Breeds
2007-06-06 9:27 ` Segher Boessenkool
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).