From patchwork Mon Jan 4 04:19:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 562232 X-Patchwork-Delegate: sbabic@denx.de 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 981BF1402CD for ; Mon, 4 Jan 2016 15:23:28 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=PXE6PjZl; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A5B14B72F; Mon, 4 Jan 2016 05:23:25 +0100 (CET) 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 Gm5iQivh3_0C; Mon, 4 Jan 2016 05:23:24 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 30B564B6C6; Mon, 4 Jan 2016 05:23:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 43C214B6C6 for ; Mon, 4 Jan 2016 05:23:21 +0100 (CET) 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 2cbB_ggel4Wu for ; Mon, 4 Jan 2016 05:23:21 +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-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by theia.denx.de (Postfix) with ESMTPS id BA24B4B6BB for ; Mon, 4 Jan 2016 05:23:16 +0100 (CET) Received: by mail-pa0-f46.google.com with SMTP id uo6so170687691pac.1 for ; Sun, 03 Jan 2016 20:23:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=SwGA7dbOWQCYl208gLFNZc7PLhphb3m3XEtWONRbXPQ=; b=PXE6PjZl9/oHSV/dDPv+3ZtICunkzS/8wDxTO8EOOzWPE46xRPl9j3QAFSK9FstEaj Uin/VQ2mxEUMS2R06VdHo60ANWqsN01ZXsBTRCTo7/7sL3260DzLDLIitcCKQ1oMLtax SAbD65Wbd6k5vRA1yCLwKCN195pCzxZWI9VE/hhHfc0ZRC8g7bKEAdbtW8R1T42XHIpU 4LD/t1x2LUZp6zD32nmkilbrUsH/wquzd3Gw60w94iELtQkGLWABdIcy0eipZ8ZwskWO 7ME3efGPKCMs9tUwRx6fPqzFLZwE+AA1DY0Wg03KFTLjhH3FCPoQNiaB1Z+zEHwBk06H GIIA== X-Received: by 10.66.156.106 with SMTP id wd10mr124112377pab.150.1451881394692; Sun, 03 Jan 2016 20:23:14 -0800 (PST) Received: from linux-7smt.suse (gate-zmy3.freescale.com. [192.88.167.1]) by smtp.gmail.com with ESMTPSA id c27sm91263296pfd.50.2016.01.03.20.23.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Jan 2016 20:23:14 -0800 (PST) From: Peng Fan X-Google-Original-From: Peng Fan To: u-boot@lists.denx.de Date: Mon, 4 Jan 2016 12:19:13 +0800 Message-Id: <1451881154-5686-1-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.6.2 Cc: Fabio Estevam Subject: [U-Boot] [PATCH 1/2] arm: add a weak function reset_cpu X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This commit 4bdcbe60a142b08eefccb0e326a37ba81d3389e8 removes reset_cpu which breaks SPL build when DEBUG macro defined. Introudce a weak function reset_cpu to avoid build failure when building SPL for i.MX with DEBUG enabled. " arch/arm/lib/built-in.o: In function `do_reset': ~/uboot/arch/arm/lib/reset.c:45: undefined reference to `reset_cpu' scripts/Makefile.spl:244: recipe for target 'spl/u-boot-spl' failed " Signed-off-by: Peng Fan Cc: Albert Aribaud Cc: Stefano Babic Cc: Fabio Estevam --- arch/arm/lib/reset.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/lib/reset.c b/arch/arm/lib/reset.c index 9a95f08..4dd0131 100644 --- a/arch/arm/lib/reset.c +++ b/arch/arm/lib/reset.c @@ -27,6 +27,10 @@ __weak void reset_misc(void) { } +__weak void reset_cpu(ulong addr) +{ +} + int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { puts ("resetting ...\n");