diff options
Diffstat (limited to 'arch/sh/boot/Makefile')
-rw-r--r-- | arch/sh/boot/Makefile | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile index c16ccd4bfa16..95483d161258 100644 --- a/arch/sh/boot/Makefile +++ b/arch/sh/boot/Makefile | |||
@@ -33,20 +33,24 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE | |||
33 | $(obj)/compressed/vmlinux: FORCE | 33 | $(obj)/compressed/vmlinux: FORCE |
34 | $(Q)$(MAKE) $(build)=$(obj)/compressed $@ | 34 | $(Q)$(MAKE) $(build)=$(obj)/compressed $@ |
35 | 35 | ||
36 | ifeq ($(CONFIG_32BIT),y) | 36 | KERNEL_MEMORY := 0x00000000 |
37 | KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \ | 37 | ifeq ($(CONFIG_PMB_FIXED),y) |
38 | $$[$(CONFIG_PAGE_OFFSET) + \ | 38 | KERNEL_MEMORY := $(shell /bin/bash -c 'printf "0x%08x" \ |
39 | $(CONFIG_ZERO_PAGE_OFFSET)]') | 39 | $$[$(CONFIG_MEMORY_START) & 0x1fffffff]') |
40 | else | 40 | endif |
41 | ifeq ($(CONFIG_29BIT),y) | ||
42 | KERNEL_MEMORY := $(shell /bin/bash -c 'printf "0x%08x" \ | ||
43 | $$[$(CONFIG_MEMORY_START)]') | ||
44 | endif | ||
45 | |||
41 | KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \ | 46 | KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \ |
42 | $$[$(CONFIG_PAGE_OFFSET) + \ | 47 | $$[$(CONFIG_PAGE_OFFSET) + \ |
43 | $(CONFIG_MEMORY_START) + \ | 48 | $(KERNEL_MEMORY) + \ |
44 | $(CONFIG_ZERO_PAGE_OFFSET)]') | 49 | $(CONFIG_ZERO_PAGE_OFFSET)]') |
45 | endif | ||
46 | 50 | ||
47 | KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%08x" \ | 51 | KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%08x" \ |
48 | $$[$(CONFIG_PAGE_OFFSET) + \ | 52 | $$[$(CONFIG_PAGE_OFFSET) + \ |
49 | $(CONFIG_MEMORY_START) + \ | 53 | $(KERNEL_MEMORY) + \ |
50 | $(CONFIG_ZERO_PAGE_OFFSET) + $(CONFIG_ENTRY_OFFSET)]') | 54 | $(CONFIG_ZERO_PAGE_OFFSET) + $(CONFIG_ENTRY_OFFSET)]') |
51 | 55 | ||
52 | quiet_cmd_uimage = UIMAGE $@ | 56 | quiet_cmd_uimage = UIMAGE $@ |