From patchwork Tue Feb 21 01:32:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 142223 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 40693B6EF1 for ; Tue, 21 Feb 2012 12:34:34 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9223328118; Tue, 21 Feb 2012 02:34:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c2zezZpWFCmG; Tue, 21 Feb 2012 02:34:18 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A910E280E9; Tue, 21 Feb 2012 02:33:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 62B71280C0 for ; Tue, 21 Feb 2012 02:33:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O3P8ySKJxraS for ; Tue, 21 Feb 2012 02:33:19 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-qw0-f74.google.com (mail-qw0-f74.google.com [209.85.216.74]) by theia.denx.de (Postfix) with ESMTPS id 27A2D280C8 for ; Tue, 21 Feb 2012 02:33:14 +0100 (CET) Received: by qadb12 with SMTP id b12so765511qad.3 for ; Mon, 20 Feb 2012 17:33:13 -0800 (PST) Received-SPF: pass (google.com: domain of sjg@google.com designates 10.101.125.1 as permitted sender) client-ip=10.101.125.1; Authentication-Results: mr.google.com; spf=pass (google.com: domain of sjg@google.com designates 10.101.125.1 as permitted sender) smtp.mail=sjg@google.com Received: from mr.google.com ([10.101.125.1]) by 10.101.125.1 with SMTP id c1mr15171216ann.0.1329787993458 (num_hops = 1); Mon, 20 Feb 2012 17:33:13 -0800 (PST) Received: by 10.101.125.1 with SMTP id c1mr10809441ann.0.1329787993345; Mon, 20 Feb 2012 17:33:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.101.125.1 with SMTP id c1mr10809393ann.0.1329787993049; Mon, 20 Feb 2012 17:33:13 -0800 (PST) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id g10si12000283yhn.7.2012.02.20.17.33.13 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 20 Feb 2012 17:33:13 -0800 (PST) Received: from sglass.mtv.corp.google.com (sglass.mtv.corp.google.com [172.22.72.144]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id EAD5210004D; Mon, 20 Feb 2012 17:33:12 -0800 (PST) Received: by sglass.mtv.corp.google.com (Postfix, from userid 121222) id CCD091406CB; Mon, 20 Feb 2012 17:33:12 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Mon, 20 Feb 2012 17:32:51 -0800 Message-Id: <1329787975-6695-10-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1329787975-6695-1-git-send-email-sjg@chromium.org> References: <1329787975-6695-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQlhK+LApr6M6w2XiAtyyyqial6V1+sGmuf9fmGW7iegg00nj+qPxDE31+QZv4pcPbX2XkgV6t8VKiz9nzwMTwYUv2U9i0nul2mtApeBQOdzxyYKwDYQ03p7QlHC9RX7Z1jtypofmoVvXUtQOTCeNeeJMYbd+mSmGzX/3KmonpQlar7lBak= Cc: Syed Mohammed Khasim , Tom Rini Subject: [U-Boot] [PATCH v4 09/13] hawkboard: Modify to work with generic relocation X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Add use of common/ and lib/ libraries for the SPL stage, and add the new link symbol required for generic relocation. Signed-off-by: Simon Glass Acked-by: Tom Rini --- Changes in v4: - Split out hawkboard changes into new patch board/davinci/da8xxevm/u-boot-spl-hawk.lds | 1 + include/configs/hawkboard.h | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/board/davinci/da8xxevm/u-boot-spl-hawk.lds b/board/davinci/da8xxevm/u-boot-spl-hawk.lds index b3a41af..4bbfa3d 100644 --- a/board/davinci/da8xxevm/u-boot-spl-hawk.lds +++ b/board/davinci/da8xxevm/u-boot-spl-hawk.lds @@ -58,6 +58,7 @@ SECTIONS } . = ALIGN(4); + __image_copy_end = .; __rel_dyn_start = .; __rel_dyn_end = .; __dynsym_start = .; diff --git a/include/configs/hawkboard.h b/include/configs/hawkboard.h index 50a1c17..85a955b 100644 --- a/include/configs/hawkboard.h +++ b/include/configs/hawkboard.h @@ -63,6 +63,8 @@ #define CONFIG_SPL_NAND_SIMPLE #define CONFIG_SPL_NAND_LOAD #define CONFIG_SPL_SERIAL_SUPPORT +#define CONFIG_SPL_LIBCOMMON_SUPPORT +#define CONFIG_SPL_LIBGENERIC_SUPPORT #define CONFIG_SPL_LDSCRIPT "board/$(BOARDDIR)/u-boot-spl-hawk.lds" #define CONFIG_SPL_TEXT_BASE 0xc1080000 #define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR