aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/boot/compressed/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/boot/compressed/Makefile')
-rw-r--r--arch/mips/boot/compressed/Makefile9
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
15include $(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
16BOOT_HEAP_SIZE := 0x400000 18BOOT_HEAP_SIZE := 0x400000
17 19
@@ -30,9 +32,10 @@ KBUILD_AFLAGS := $(LINUXINCLUDE) $(KBUILD_AFLAGS) -D__ASSEMBLY__ \
30targets := head.o decompress.o string.o dbg.o uart-16550.o uart-alchemy.o 32targets := 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)
33vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o $(obj)/dbg.o 35vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o
34 36
35ifdef CONFIG_DEBUG_ZBOOT 37ifdef CONFIG_DEBUG_ZBOOT
38vmlinuzobjs-$(CONFIG_DEBUG_ZBOOT) += $(obj)/dbg.o
36vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o 39vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o
37vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o 40vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o
38endif 41endif
@@ -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
67hostprogs-y := calc_vmlinuz_load_addr 70hostprogs-y := calc_vmlinuz_load_addr
68 71
69ifeq ($(CONFIG_MACH_JZ4740),y) 72ifneq ($(zload-y),)
70VMLINUZ_LOAD_ADDRESS := 0x80600000 73VMLINUZ_LOAD_ADDRESS := $(zload-y)
71else 74else
72VMLINUZ_LOAD_ADDRESS = $(shell $(obj)/calc_vmlinuz_load_addr \ 75VMLINUZ_LOAD_ADDRESS = $(shell $(obj)/calc_vmlinuz_load_addr \
73 $(obj)/vmlinux.bin $(VMLINUX_LOAD_ADDRESS)) 76 $(obj)/vmlinux.bin $(VMLINUX_LOAD_ADDRESS))