diff options
author | Thomas Betker <thomas.betker@5etech.eu> | 2007-11-30 04:22:10 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:59 -0500 |
commit | 453ec9c1c3808b051347edbbf637f997add7b85b (patch) | |
tree | 0965873750210ed48963c22f1b1998a65a9e78b5 /arch/sh/boot | |
parent | 0fb19dcb64ec4bd9934eee26ce66417fe028ffd8 (diff) |
sh: Fix up uImage target entry point.
This patch changes the uImage target so that it generates a wrapped
compressed vmlinux, rather than a wrapped zImage. The previous version
matched the ARM, this version matches the PPC. However I would question
how useful a self decompressing image is with a boot loader which does
decompression, so I think this is more useful. I also feel it matches
the descrition in the help text ("Compressed kernel image") better.
Signed-off-by: Thomas Betker <thomas.betker@5etech.eu>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boot')
-rw-r--r-- | arch/sh/boot/Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile index 1b0f5be01d10..4b3a6f19c3b5 100644 --- a/arch/sh/boot/Makefile +++ b/arch/sh/boot/Makefile | |||
@@ -35,17 +35,27 @@ $(obj)/compressed/vmlinux: FORCE | |||
35 | KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%8x" \ | 35 | KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%8x" \ |
36 | $$[$(CONFIG_PAGE_OFFSET) + \ | 36 | $$[$(CONFIG_PAGE_OFFSET) + \ |
37 | $(CONFIG_MEMORY_START) + \ | 37 | $(CONFIG_MEMORY_START) + \ |
38 | $(CONFIG_ZERO_PAGE_OFFSET)+0x1000]') | 38 | $(CONFIG_ZERO_PAGE_OFFSET)]') |
39 | |||
40 | KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%8x" \ | ||
41 | $$[$(KERNEL_LOAD)+0x1000]') | ||
42 | |||
39 | 43 | ||
40 | quiet_cmd_uimage = UIMAGE $@ | 44 | quiet_cmd_uimage = UIMAGE $@ |
41 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \ | 45 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \ |
42 | -C none -a $(KERNEL_LOAD) -e $(KERNEL_LOAD) \ | 46 | -C none -a $(KERNEL_LOAD) -e $(KERNEL_ENTRY) \ |
43 | -n 'Linux-$(KERNELRELEASE)' -d $< $@ | 47 | -n 'Linux-$(KERNELRELEASE)' -d $< $@ |
44 | 48 | ||
45 | $(obj)/uImage: $(obj)/zImage FORCE | 49 | $(obj)/uImage: $(obj)/vmlinux.bin.gz FORCE |
46 | $(call if_changed,uimage) | 50 | $(call if_changed,uimage) |
47 | @echo ' Image $@ is ready' | 51 | @echo ' Image $@ is ready' |
48 | 52 | ||
53 | $(obj)/vmlinux.bin: vmlinux FORCE | ||
54 | $(call if_changed,objcopy) | ||
55 | |||
56 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
57 | $(call if_changed,gzip) | ||
58 | |||
49 | OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec | 59 | OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec |
50 | $(obj)/vmlinux.srec: $(obj)/compressed/vmlinux | 60 | $(obj)/vmlinux.srec: $(obj)/compressed/vmlinux |
51 | $(call if_changed,objcopy) | 61 | $(call if_changed,objcopy) |
@@ -54,4 +64,5 @@ OBJCOPYFLAGS_uImage.srec := -I binary -O srec | |||
54 | $(obj)/uImage.srec: $(obj)/uImage | 64 | $(obj)/uImage.srec: $(obj)/uImage |
55 | $(call if_changed,objcopy) | 65 | $(call if_changed,objcopy) |
56 | 66 | ||
57 | clean-files += uImage uImage.srec vmlinux.srec | 67 | clean-files += uImage uImage.srec vmlinux.srec \ |
68 | vmlinux.bin vmlinux.bin.gz | ||