From patchwork Wed Jun 5 07:06:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2665581 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 62085DF264 for ; Wed, 5 Jun 2013 07:00:02 +0000 (UTC) Received: from merlin.infradead.org ([205.233.59.134]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uk7h2-0006FN-5v; Wed, 05 Jun 2013 06:59:36 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uk7gt-0007Os-JC; Wed, 05 Jun 2013 06:59:27 +0000 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uk7gj-0007NO-Vz for linux-arm-kernel@lists.infradead.org; Wed, 05 Jun 2013 06:59:18 +0000 Received: by mail-pa0-f45.google.com with SMTP id bi5so795170pad.32 for ; Tue, 04 Jun 2013 23:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=h1QlHKuu9uHQ08uNllm2FutxfADN1x9kCW9LlLrb38E=; b=MbZRUslDJkJZUkrLsVfw57We56SC585Cfw7Xg5Mus1majnSoZmQJLncDE7mHmcwvVd f14c8dmxpC6eUXd7v0VgUc2EDBDf0PDEDFK0YwXTJSI8CH3B3pN0zwzzfXSv9Z8/Wgvb wlaHz9OnHk15qyxqe/Ura3lvOuZ4u2PHvTrw+jMFLwgu6vFktRZHb6xHo8Yiwnfe5Uc9 pDA3isxs/SFRQ+SQIPuOtMRvZLdabawe0hqcRz92v5LvpnFpRzl7nuU0DQbTh1DFFY9J wX5DuikaKHIvO60M3w0a+NFD5ahN6vvBhJGMCcdj7PhITe5xCk3dZ3wxh24vDiRQyG+B uANA== X-Received: by 10.68.139.33 with SMTP id qv1mr31827246pbb.93.1370415536665; Tue, 04 Jun 2013 23:58:56 -0700 (PDT) Received: from [127.0.0.1] (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id fn9sm71238880pab.2.2013.06.04.23.58.54 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Jun 2013 23:58:56 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Wed, 05 Jun 2013 16:06:25 +0900 Message-Id: <20130605070625.13311.17016.sendpatchset@w520> In-Reply-To: <20130605070616.13311.69049.sendpatchset@w520> References: <20130605070616.13311.69049.sendpatchset@w520> Subject: [PATCH 01/15] ARM: shmobile: Per-board uImage load addresses X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130605_025918_117931_3D69E1E3 X-CRM114-Status: UNSURE ( 7.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (magnus.damm[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: arnd@arndb.de, Magnus Damm , horms@verge.net.au, laurent.pinchart@ideasonboard.com, olof@lixom.net, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Magnus Damm Introduce per-board uImage load address calculation. This will allow us to use the same uImage for multiple boards if the load address happens to match. For now keep on using CONFIG_MEMORY_START. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/Makefile.boot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- 0001/arch/arm/mach-shmobile/Makefile.boot +++ work/arch/arm/mach-shmobile/Makefile.boot 2013-06-04 12:33:07.000000000 +0900 @@ -1,6 +1,9 @@ -__ZRELADDR := $(shell /bin/bash -c 'printf "0x%08x" \ +loadaddr-y := $(shell /bin/bash -c 'printf "0x%08x" \ $$[$(CONFIG_MEMORY_START) + 0x8000]') +__ZRELADDR := $(shell /bin/bash -c \ + 'echo $(loadaddr-y) | tr " " "\n" | sort | uniq') + zreladdr-y += $(__ZRELADDR) # Unsupported legacy stuff