diff options
author | Magnus Damm <damm@opensource.se> | 2009-10-26 06:12:39 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-26 06:46:25 -0400 |
commit | 9e24c7e2ac269486ab7c69ce50e944698e818fac (patch) | |
tree | 1ea2f22fc62dc7a8c482077b8f0f7731243897f5 | |
parent | 88345411df1eb5a24272955a53856e001f960a06 (diff) |
sh: add uImage.bin target
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>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/Makefile | 2 | ||||
-rw-r--r-- | arch/sh/boot/Makefile | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index fc51a918b31..9ab99fe7be5 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -199,7 +199,7 @@ endif | |||
199 | libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) | 199 | libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) |
200 | libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) | 200 | libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) |
201 | 201 | ||
202 | BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.srec \ | 202 | BOOT_TARGETS = uImage uImage.bz2 uImage.gz uImage.lzma uImage.srec uImage.bin \ |
203 | zImage vmlinux.srec romImage | 203 | zImage vmlinux.srec romImage |
204 | PHONY += maketools $(BOOT_TARGETS) FORCE | 204 | PHONY += maketools $(BOOT_TARGETS) FORCE |
205 | 205 | ||
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile index a1316872be6..cb8cf5572e7 100644 --- a/arch/sh/boot/Makefile +++ b/arch/sh/boot/Makefile | |||
@@ -20,11 +20,12 @@ CONFIG_BOOT_LINK_OFFSET ?= 0x00800000 | |||
20 | CONFIG_ZERO_PAGE_OFFSET ?= 0x00001000 | 20 | CONFIG_ZERO_PAGE_OFFSET ?= 0x00001000 |
21 | CONFIG_ENTRY_OFFSET ?= 0x00001000 | 21 | CONFIG_ENTRY_OFFSET ?= 0x00001000 |
22 | 22 | ||
23 | suffix-y := bin | ||
23 | suffix-$(CONFIG_KERNEL_GZIP) := gz | 24 | suffix-$(CONFIG_KERNEL_GZIP) := gz |
24 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 | 25 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 |
25 | suffix-$(CONFIG_KERNEL_LZMA) := lzma | 26 | suffix-$(CONFIG_KERNEL_LZMA) := lzma |
26 | 27 | ||
27 | targets := zImage vmlinux.srec romImage uImage uImage.srec uImage.gz uImage.bz2 uImage.lzma | 28 | targets := zImage vmlinux.srec romImage uImage uImage.srec uImage.gz uImage.bz2 uImage.lzma uImage.bin |
28 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma | 29 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma |
29 | subdir- := compressed romimage | 30 | subdir- := compressed romimage |
30 | 31 | ||
@@ -88,6 +89,9 @@ $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz | |||
88 | $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma | 89 | $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma |
89 | $(call if_changed,uimage,lzma) | 90 | $(call if_changed,uimage,lzma) |
90 | 91 | ||
92 | $(obj)/uImage.bin: $(obj)/vmlinux.bin | ||
93 | $(call if_changed,uimage,none) | ||
94 | |||
91 | OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec | 95 | OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec |
92 | $(obj)/vmlinux.srec: $(obj)/compressed/vmlinux | 96 | $(obj)/vmlinux.srec: $(obj)/compressed/vmlinux |
93 | $(call if_changed,objcopy) | 97 | $(call if_changed,objcopy) |