diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-07-29 11:04:05 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-07-29 11:24:03 -0400 |
commit | 3c928320b2254cb6c8d8a7919a1fcf94ca7cae66 (patch) | |
tree | ee2682b83916592c63202cb8749e1e35cfc5728a /arch/sh/boot/Makefile | |
parent | fd78a76aefb5bf28a11d6960d29e03a11db62320 (diff) |
sh: romImage support V2
This patch contains support for the romImage build target V2.
The resulting romImage file should be burned to rom
or flash and could be used as small boot loader.
Board code should keep their setup code in the file
romimage.h located in their mach include directory.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boot/Makefile')
-rw-r--r-- | arch/sh/boot/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile index dd2a852041e9..a1316872be6f 100644 --- a/arch/sh/boot/Makefile +++ b/arch/sh/boot/Makefile | |||
@@ -24,9 +24,9 @@ suffix-$(CONFIG_KERNEL_GZIP) := gz | |||
24 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 | 24 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 |
25 | suffix-$(CONFIG_KERNEL_LZMA) := lzma | 25 | suffix-$(CONFIG_KERNEL_LZMA) := lzma |
26 | 26 | ||
27 | targets := zImage vmlinux.srec uImage uImage.srec uImage.gz uImage.bz2 uImage.lzma | 27 | targets := zImage vmlinux.srec romImage uImage uImage.srec uImage.gz uImage.bz2 uImage.lzma |
28 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma | 28 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma |
29 | subdir- := compressed | 29 | subdir- := compressed romimage |
30 | 30 | ||
31 | $(obj)/zImage: $(obj)/compressed/vmlinux FORCE | 31 | $(obj)/zImage: $(obj)/compressed/vmlinux FORCE |
32 | $(call if_changed,objcopy) | 32 | $(call if_changed,objcopy) |
@@ -35,6 +35,13 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE | |||
35 | $(obj)/compressed/vmlinux: FORCE | 35 | $(obj)/compressed/vmlinux: FORCE |
36 | $(Q)$(MAKE) $(build)=$(obj)/compressed $@ | 36 | $(Q)$(MAKE) $(build)=$(obj)/compressed $@ |
37 | 37 | ||
38 | $(obj)/romImage: $(obj)/romimage/vmlinux FORCE | ||
39 | $(call if_changed,objcopy) | ||
40 | @echo ' Kernel: $@ is ready' | ||
41 | |||
42 | $(obj)/romimage/vmlinux: $(obj)/zImage FORCE | ||
43 | $(Q)$(MAKE) $(build)=$(obj)/romimage $@ | ||
44 | |||
38 | KERNEL_MEMORY := 0x00000000 | 45 | KERNEL_MEMORY := 0x00000000 |
39 | ifeq ($(CONFIG_PMB_FIXED),y) | 46 | ifeq ($(CONFIG_PMB_FIXED),y) |
40 | KERNEL_MEMORY := $(shell /bin/bash -c 'printf "0x%08x" \ | 47 | KERNEL_MEMORY := $(shell /bin/bash -c 'printf "0x%08x" \ |