diff options
Diffstat (limited to 'arch/sh/boot/Makefile')
-rw-r--r-- | arch/sh/boot/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile index 1b0f5be01d1..59f552c1334 100644 --- a/arch/sh/boot/Makefile +++ b/arch/sh/boot/Makefile | |||
@@ -35,17 +35,28 @@ $(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)]') | ||
39 | |||
40 | KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%8x" \ | ||
41 | $$[$(CONFIG_PAGE_OFFSET) + \ | ||
42 | $(CONFIG_MEMORY_START) + \ | ||
38 | $(CONFIG_ZERO_PAGE_OFFSET)+0x1000]') | 43 | $(CONFIG_ZERO_PAGE_OFFSET)+0x1000]') |
39 | 44 | ||
40 | quiet_cmd_uimage = UIMAGE $@ | 45 | quiet_cmd_uimage = UIMAGE $@ |
41 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \ | 46 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \ |
42 | -C none -a $(KERNEL_LOAD) -e $(KERNEL_LOAD) \ | 47 | -C none -a $(KERNEL_LOAD) -e $(KERNEL_ENTRY) \ |
43 | -n 'Linux-$(KERNELRELEASE)' -d $< $@ | 48 | -n 'Linux-$(KERNELRELEASE)' -d $< $@ |
44 | 49 | ||
45 | $(obj)/uImage: $(obj)/zImage FORCE | 50 | $(obj)/uImage: $(obj)/vmlinux.bin.gz FORCE |
46 | $(call if_changed,uimage) | 51 | $(call if_changed,uimage) |
47 | @echo ' Image $@ is ready' | 52 | @echo ' Image $@ is ready' |
48 | 53 | ||
54 | $(obj)/vmlinux.bin: vmlinux FORCE | ||
55 | $(call if_changed,objcopy) | ||
56 | |||
57 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
58 | $(call if_changed,gzip) | ||
59 | |||
49 | OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec | 60 | OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec |
50 | $(obj)/vmlinux.srec: $(obj)/compressed/vmlinux | 61 | $(obj)/vmlinux.srec: $(obj)/compressed/vmlinux |
51 | $(call if_changed,objcopy) | 62 | $(call if_changed,objcopy) |
@@ -54,4 +65,5 @@ OBJCOPYFLAGS_uImage.srec := -I binary -O srec | |||
54 | $(obj)/uImage.srec: $(obj)/uImage | 65 | $(obj)/uImage.srec: $(obj)/uImage |
55 | $(call if_changed,objcopy) | 66 | $(call if_changed,objcopy) |
56 | 67 | ||
57 | clean-files += uImage uImage.srec vmlinux.srec | 68 | clean-files += uImage uImage.srec vmlinux.srec \ |
69 | vmlinux.bin vmlinux.bin.gz | ||