linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: Enable vmlinuz for JZ4740

To: Maarten ter Huurne <maarten@treewalker.org>
Subject: Re: [PATCH] MIPS: Enable vmlinuz for JZ4740
From: Sergei Shtylyov <sshtylyov@mvista.com>
Date: Fri, 30 Mar 2012 02:28:32 +0400
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org, Lluís Batlle i Rossell <viric@viric.name>, Lars-Peter Clausen <lars@metafoo.de>
In-reply-to: <1333037360-18382-1-git-send-email-maarten@treewalker.org>
References: <1333037360-18382-1-git-send-email-maarten@treewalker.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
Hello.

On 29-03-2012 20:09, Maarten ter Huurne wrote:

From: Lluís Batlle i Rossell<viric@viric.name>

This patch adds support for building a compressed kernel for the JZ4740
architecture.

Signed-off-by: Lars-Peter Clausen<lars@metafoo.de>
Signed-off-by: Maarten ter Huurne<maarten@treewalker.org>
[...]

diff --git a/arch/mips/boot/compressed/Makefile 
b/arch/mips/boot/compressed/Makefile
index 5042d51..71d89cb 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -58,8 +58,12 @@ $(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.bin.z FORCE
  # Calculate the load address of the compressed kernel image
  hostprogs-y := calc_vmlinuz_load_addr

+ifeq ($(CONFIG_MACH_JZ4740),y)
+VMLINUZ_LOAD_ADDRESS:=0x80600000

   Spaces around :=, please. And why this should be out of order case?

+else
  VMLINUZ_LOAD_ADDRESS = $(shell $(obj)/calc_vmlinuz_load_addr \
                $(obj)/vmlinux.bin $(VMLINUX_LOAD_ADDRESS))
+endif

  vmlinuzobjs-y += $(obj)/piggy.o

WBR, Sergei

<Prev in Thread] Current Thread [Next in Thread>