All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH,resend] sparc64: build compressed image (zImage) by default
@ 2009-07-16 18:41 ` Frans Pop
  0 siblings, 0 replies; 18+ messages in thread
From: Frans Pop @ 2009-07-16 18:41 UTC (permalink / raw)
  To: sparclinux; +Cc: linux-kbuild, Jurij Smakov, David Miller

From: Jurij Smakov <jurij@wooyd.org>
Subject: sparc64: build compressed image (zImage) by default

Besides creating the uncompressed vmlinux image for sparc64, also
create a compressed zImage. This is more consistent with other
architectures and required to make the 'deb-pkg' target work.

Signed-off-by: Jurij Smakov <jurij@wooyd.org>
Signed-off-by: Frans Pop <elendil@planet.nl>

---
The patch was taken from the Debian kernel package. It was written by
Jurij. I added his Signed-off-by with his permission.

The patch was tested to work during my recent tests for the cmd64x issue.

diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile
index 2003ded..2adc5ea 100644
--- a/arch/sparc/Makefile
+++ b/arch/sparc/Makefile
@@ -91,6 +91,9 @@ endif
 
 boot := arch/sparc/boot
 
+# Default target
+all: zImage
+
 image zImage tftpboot.img vmlinux.aout: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 
diff --git a/arch/sparc/boot/Makefile b/arch/sparc/boot/Makefile
index 1ff0fd9..97e3feb 100644
--- a/arch/sparc/boot/Makefile
+++ b/arch/sparc/boot/Makefile
@@ -79,6 +79,9 @@ $(obj)/image: vmlinux FORCE
 	$(call if_changed,strip)
 	@echo '  kernel: $@ is ready'
 
+$(obj)/zImage: $(obj)/image
+	$(call if_changed,gzip)
+
 $(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback_64 System.map $(ROOT_IMG) FORCE
 	$(call if_changed,elftoaout)
 	$(call if_changed,piggy)

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2009-08-17  1:22 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-16 18:41 [PATCH,resend] sparc64: build compressed image (zImage) by default Frans Pop
2009-07-16 18:41 ` Frans Pop
2009-07-16 20:16 ` Sam Ravnborg
2009-07-16 20:16   ` [PATCH,resend] sparc64: build compressed image (zImage) by Sam Ravnborg
2009-07-16 23:42   ` [PATCH,resend] sparc64: build compressed image (zImage) by default Julian Calaby
2009-07-16 23:42     ` [PATCH,resend] sparc64: build compressed image (zImage) by Julian Calaby
2009-07-22 17:07   ` [PATCH,resend] sparc64: build compressed image (zImage) by default Frans Pop
2009-07-22 17:07     ` Frans Pop
2009-07-22 18:25     ` David Miller
2009-07-22 18:25       ` [PATCH,resend] sparc64: build compressed image (zImage) by David Miller
2009-07-16 20:16 ` [PATCH,resend] sparc64: build compressed image (zImage) by default David Miller
2009-07-16 20:16   ` [PATCH,resend] sparc64: build compressed image (zImage) by David Miller
2009-07-16 21:46   ` [PATCH,resend] sparc64: build compressed image (zImage) by default Frans Pop
2009-07-16 21:46     ` Frans Pop
2009-07-23 18:55 ` [PATCH] sparc64: list zImage build target in 'make help' output Frans Pop
2009-07-23 18:55   ` Frans Pop
2009-08-17  1:22   ` David Miller
2009-08-17  1:22     ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.