public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: add uImage.bin target
@ 2009-10-26 10:12 Magnus Damm
  2009-10-26 12:39 ` Jean-Christophe PLAGNIOL-VILLARD
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Magnus Damm @ 2009-10-26 10:12 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@opensource.se>

Add an uImage.bin target to allow uncompressed uImages.
Useful for boards with busted u-boot decompression like
the rsk7203 on my desk.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/sh/Makefile      |    2 +-
 arch/sh/boot/Makefile |    6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

--- 0001/arch/sh/Makefile
+++ work/arch/sh/Makefile	2009-10-26 18:54:04.000000000 +0900
@@ -199,7 +199,7 @@ endif
 libs-$(CONFIG_SUPERH32)		:= arch/sh/lib/	$(libs-y)
 libs-$(CONFIG_SUPERH64)		:= arch/sh/lib64/ $(libs-y)
 
-BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.srec \
+BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.srec uImage.bin \
 	       zImage vmlinux.srec romImage
 PHONY += maketools $(BOOT_TARGETS) FORCE
 
--- 0001/arch/sh/boot/Makefile
+++ work/arch/sh/boot/Makefile	2009-10-26 18:58:16.000000000 +0900
@@ -20,11 +20,12 @@ CONFIG_BOOT_LINK_OFFSET	?= 0x00800000
 CONFIG_ZERO_PAGE_OFFSET	?= 0x00001000
 CONFIG_ENTRY_OFFSET	?= 0x00001000
 
+suffix-y := bin
 suffix-$(CONFIG_KERNEL_GZIP)  := gz
 suffix-$(CONFIG_KERNEL_BZIP2) := bz2
 suffix-$(CONFIG_KERNEL_LZMA)  := lzma
 
-targets := zImage vmlinux.srec romImage uImage uImage.srec uImage.gz uImage.bz2 uImage.lzma
+targets := zImage vmlinux.srec romImage uImage uImage.srec uImage.gz uImage.bz2 uImage.lzma uImage.bin
 extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma
 subdir- := compressed romimage
 
@@ -88,6 +89,9 @@ $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz
 $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma
 	$(call if_changed,uimage,lzma)
 
+$(obj)/uImage.bin: $(obj)/vmlinux.bin
+	$(call if_changed,uimage,none)
+
 OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec
 $(obj)/vmlinux.srec: $(obj)/compressed/vmlinux
 	$(call if_changed,objcopy)

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

* Re: [PATCH] sh: add uImage.bin target
  2009-10-26 10:12 [PATCH] sh: add uImage.bin target Magnus Damm
@ 2009-10-26 12:39 ` Jean-Christophe PLAGNIOL-VILLARD
  2009-10-26 21:14 ` Mike Frysinger
  2009-10-26 22:25 ` Paul Mundt
  2 siblings, 0 replies; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-10-26 12:39 UTC (permalink / raw)
  To: linux-sh

On 19:12 Mon 26 Oct     , Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
> 
> Add an uImage.bin target to allow uncompressed uImages.
> Useful for boards with busted u-boot decompression like
> the rsk7203 on my desk.
> 
> Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Best Regards,
J.

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

* Re: [PATCH] sh: add uImage.bin target
  2009-10-26 10:12 [PATCH] sh: add uImage.bin target Magnus Damm
  2009-10-26 12:39 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-10-26 21:14 ` Mike Frysinger
  2009-10-26 22:25 ` Paul Mundt
  2 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2009-10-26 21:14 UTC (permalink / raw)
  To: linux-sh

[-- Attachment #1: Type: Text/Plain, Size: 425 bytes --]

On Monday 26 October 2009 06:12:39 Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
> 
> Add an uImage.bin target to allow uncompressed uImages.
> Useful for boards with busted u-boot decompression like
> the rsk7203 on my desk.

might want to update/fix arch/sh/Makefile's archhelp in the process (seems to 
have random tab/spaces intermixed).

i'll be poaching & adding this to Blackfin too ;)
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] sh: add uImage.bin target
  2009-10-26 10:12 [PATCH] sh: add uImage.bin target Magnus Damm
  2009-10-26 12:39 ` Jean-Christophe PLAGNIOL-VILLARD
  2009-10-26 21:14 ` Mike Frysinger
@ 2009-10-26 22:25 ` Paul Mundt
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Mundt @ 2009-10-26 22:25 UTC (permalink / raw)
  To: linux-sh

On Mon, Oct 26, 2009 at 05:14:53PM -0400, Mike Frysinger wrote:
> On Monday 26 October 2009 06:12:39 Magnus Damm wrote:
> > From: Magnus Damm <damm@opensource.se>
> > 
> > Add an uImage.bin target to allow uncompressed uImages.
> > Useful for boards with busted u-boot decompression like
> > the rsk7203 on my desk.
> 
> might want to update/fix arch/sh/Makefile's archhelp in the process (seems to 
> have random tab/spaces intermixed).
> 
I've added the archhelp bits now, thanks for catching that. Also, the
tabs/spaces aren't random, they're to make it line up with the rest of
the archhelp bits.

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

end of thread, other threads:[~2009-10-26 22:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-26 10:12 [PATCH] sh: add uImage.bin target Magnus Damm
2009-10-26 12:39 ` Jean-Christophe PLAGNIOL-VILLARD
2009-10-26 21:14 ` Mike Frysinger
2009-10-26 22:25 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox