All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frans Pop <elendil@planet.nl>
To: sparclinux@vger.kernel.org
Cc: linux-kbuild@vger.kernel.org, Jurij Smakov <jurij@wooyd.org>,
	David Miller <davem@davemloft.net>
Subject: [PATCH,resend] sparc64: build compressed image (zImage) by default
Date: Thu, 16 Jul 2009 20:41:52 +0200	[thread overview]
Message-ID: <200907162041.53181.elendil@planet.nl> (raw)

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)

WARNING: multiple messages have this Message-ID (diff)
From: Frans Pop <elendil@planet.nl>
To: sparclinux@vger.kernel.org
Cc: linux-kbuild@vger.kernel.org, Jurij Smakov <jurij@wooyd.org>,
	David Miller <davem@davemloft.net>
Subject: [PATCH,resend] sparc64: build compressed image (zImage) by default
Date: Thu, 16 Jul 2009 18:41:52 +0000	[thread overview]
Message-ID: <200907162041.53181.elendil@planet.nl> (raw)

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)

             reply	other threads:[~2009-07-16 18:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-16 18:41 Frans Pop [this message]
2009-07-16 18:41 ` [PATCH,resend] sparc64: build compressed image (zImage) by default 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200907162041.53181.elendil@planet.nl \
    --to=elendil@planet.nl \
    --cc=davem@davemloft.net \
    --cc=jurij@wooyd.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.