diff options
Diffstat (limited to 'arch/mips/boot/compressed/Makefile')
-rw-r--r-- | arch/mips/boot/compressed/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile index 61af6b6ab13d..dc91bde10d62 100644 --- a/arch/mips/boot/compressed/Makefile +++ b/arch/mips/boot/compressed/Makefile | |||
@@ -12,6 +12,8 @@ | |||
12 | # Author: Wu Zhangjin <wuzhangjin@gmail.com> | 12 | # Author: Wu Zhangjin <wuzhangjin@gmail.com> |
13 | # | 13 | # |
14 | 14 | ||
15 | include $(srctree)/arch/mips/Kbuild.platforms | ||
16 | |||
15 | # set the default size of the mallocing area for decompressing | 17 | # set the default size of the mallocing area for decompressing |
16 | BOOT_HEAP_SIZE := 0x400000 | 18 | BOOT_HEAP_SIZE := 0x400000 |
17 | 19 | ||
@@ -30,9 +32,10 @@ KBUILD_AFLAGS := $(LINUXINCLUDE) $(KBUILD_AFLAGS) -D__ASSEMBLY__ \ | |||
30 | targets := head.o decompress.o string.o dbg.o uart-16550.o uart-alchemy.o | 32 | targets := head.o decompress.o string.o dbg.o uart-16550.o uart-alchemy.o |
31 | 33 | ||
32 | # decompressor objects (linked with vmlinuz) | 34 | # decompressor objects (linked with vmlinuz) |
33 | vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o $(obj)/dbg.o | 35 | vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o |
34 | 36 | ||
35 | ifdef CONFIG_DEBUG_ZBOOT | 37 | ifdef CONFIG_DEBUG_ZBOOT |
38 | vmlinuzobjs-$(CONFIG_DEBUG_ZBOOT) += $(obj)/dbg.o | ||
36 | vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o | 39 | vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o |
37 | vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o | 40 | vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o |
38 | endif | 41 | endif |
@@ -66,8 +69,8 @@ $(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.bin.z FORCE | |||
66 | # Calculate the load address of the compressed kernel image | 69 | # Calculate the load address of the compressed kernel image |
67 | hostprogs-y := calc_vmlinuz_load_addr | 70 | hostprogs-y := calc_vmlinuz_load_addr |
68 | 71 | ||
69 | ifeq ($(CONFIG_MACH_JZ4740),y) | 72 | ifneq ($(zload-y),) |
70 | VMLINUZ_LOAD_ADDRESS := 0x80600000 | 73 | VMLINUZ_LOAD_ADDRESS := $(zload-y) |
71 | else | 74 | else |
72 | VMLINUZ_LOAD_ADDRESS = $(shell $(obj)/calc_vmlinuz_load_addr \ | 75 | VMLINUZ_LOAD_ADDRESS = $(shell $(obj)/calc_vmlinuz_load_addr \ |
73 | $(obj)/vmlinux.bin $(VMLINUX_LOAD_ADDRESS)) | 76 | $(obj)/vmlinux.bin $(VMLINUX_LOAD_ADDRESS)) |