diff options
Diffstat (limited to 'arch/sh/boot/Makefile')
-rw-r--r-- | arch/sh/boot/Makefile | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile index cb8cf5572e79..1ce63624c9b9 100644 --- a/arch/sh/boot/Makefile +++ b/arch/sh/boot/Makefile | |||
@@ -21,12 +21,15 @@ CONFIG_ZERO_PAGE_OFFSET ?= 0x00001000 | |||
21 | CONFIG_ENTRY_OFFSET ?= 0x00001000 | 21 | CONFIG_ENTRY_OFFSET ?= 0x00001000 |
22 | 22 | ||
23 | suffix-y := bin | 23 | suffix-y := bin |
24 | suffix-$(CONFIG_KERNEL_GZIP) := gz | 24 | suffix-$(CONFIG_KERNEL_GZIP) := gz |
25 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 | 25 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 |
26 | suffix-$(CONFIG_KERNEL_LZMA) := lzma | 26 | suffix-$(CONFIG_KERNEL_LZMA) := lzma |
27 | 27 | suffix-$(CONFIG_KERNEL_LZO) := lzo | |
28 | targets := zImage vmlinux.srec romImage uImage uImage.srec uImage.gz uImage.bz2 uImage.lzma uImage.bin | 28 | |
29 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma | 29 | targets := zImage vmlinux.srec romImage uImage uImage.srec uImage.gz \ |
30 | uImage.bz2 uImage.lzma uImage.lzo uImage.bin | ||
31 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma \ | ||
32 | vmlinux.bin.lzo | ||
30 | subdir- := compressed romimage | 33 | subdir- := compressed romimage |
31 | 34 | ||
32 | $(obj)/zImage: $(obj)/compressed/vmlinux FORCE | 35 | $(obj)/zImage: $(obj)/compressed/vmlinux FORCE |
@@ -43,15 +46,8 @@ $(obj)/romImage: $(obj)/romimage/vmlinux FORCE | |||
43 | $(obj)/romimage/vmlinux: $(obj)/zImage FORCE | 46 | $(obj)/romimage/vmlinux: $(obj)/zImage FORCE |
44 | $(Q)$(MAKE) $(build)=$(obj)/romimage $@ | 47 | $(Q)$(MAKE) $(build)=$(obj)/romimage $@ |
45 | 48 | ||
46 | KERNEL_MEMORY := 0x00000000 | 49 | KERNEL_MEMORY := $(shell /bin/bash -c 'printf "0x%08x" \ |
47 | ifeq ($(CONFIG_PMB_FIXED),y) | ||
48 | KERNEL_MEMORY := $(shell /bin/bash -c 'printf "0x%08x" \ | ||
49 | $$[$(CONFIG_MEMORY_START) & 0x1fffffff]') | 50 | $$[$(CONFIG_MEMORY_START) & 0x1fffffff]') |
50 | endif | ||
51 | ifeq ($(CONFIG_29BIT),y) | ||
52 | KERNEL_MEMORY := $(shell /bin/bash -c 'printf "0x%08x" \ | ||
53 | $$[$(CONFIG_MEMORY_START)]') | ||
54 | endif | ||
55 | 51 | ||
56 | KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \ | 52 | KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \ |
57 | $$[$(CONFIG_PAGE_OFFSET) + \ | 53 | $$[$(CONFIG_PAGE_OFFSET) + \ |
@@ -80,6 +76,9 @@ $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE | |||
80 | $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE | 76 | $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE |
81 | $(call if_changed,lzma) | 77 | $(call if_changed,lzma) |
82 | 78 | ||
79 | $(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE | ||
80 | $(call if_changed,lzo) | ||
81 | |||
83 | $(obj)/uImage.bz2: $(obj)/vmlinux.bin.bz2 | 82 | $(obj)/uImage.bz2: $(obj)/vmlinux.bin.bz2 |
84 | $(call if_changed,uimage,bzip2) | 83 | $(call if_changed,uimage,bzip2) |
85 | 84 | ||
@@ -89,6 +88,9 @@ $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz | |||
89 | $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma | 88 | $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma |
90 | $(call if_changed,uimage,lzma) | 89 | $(call if_changed,uimage,lzma) |
91 | 90 | ||
91 | $(obj)/uImage.lzo: $(obj)/vmlinux.bin.lzo | ||
92 | $(call if_changed,uimage,lzo) | ||
93 | |||
92 | $(obj)/uImage.bin: $(obj)/vmlinux.bin | 94 | $(obj)/uImage.bin: $(obj)/vmlinux.bin |
93 | $(call if_changed,uimage,none) | 95 | $(call if_changed,uimage,none) |
94 | 96 | ||