From patchwork Wed Jun 8 02:47:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 631923 X-Patchwork-Delegate: sjg@chromium.org 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 3rPXv3667Fz9sC3 for ; Wed, 8 Jun 2016 12:48:47 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=RmYDJ+8O; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3458AA75E4; Wed, 8 Jun 2016 04:48:46 +0200 (CEST) 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 ls4FE-dOXh4O; Wed, 8 Jun 2016 04:48:45 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 22752A75BA; Wed, 8 Jun 2016 04:48:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A34FBA7559 for ; Wed, 8 Jun 2016 04:48:30 +0200 (CEST) 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 Eq9Gjq7dNr2H for ; Wed, 8 Jun 2016 04:48:30 +0200 (CEST) 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-it0-f51.google.com (mail-it0-f51.google.com [209.85.214.51]) by theia.denx.de (Postfix) with ESMTPS id 434A7A754A for ; Wed, 8 Jun 2016 04:48:26 +0200 (CEST) Received: by mail-it0-f51.google.com with SMTP id h62so54492085itb.1 for ; Tue, 07 Jun 2016 19:48:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=pWXOBQdhvAPMds+EMpZQo7s8lCPjiiwXqXzmZoWelmA=; b=RmYDJ+8OQ37mxfyeS4v6jAayiRiwIurbTsHcwGOJEBJUpl/opNSy9MucJlcQ3wWhZR Mpu9aMLUtjNh3KcEY8BhcXAu7pVotAzGvWMgqDhddqLhoStA2HvB4w4YO3Q46j2Guj6m ofUfoENRAly0E+oQEJlxDDJLU0QYMjeODpVHesys9s0onUdOH7dIH4HOKfmdB2VtIksy CXpj0tUJv8d2Th1/U5lMu7mN+Hs+R0G/xN+tQmKt8p7/LZ8unkjUgcgJkE9gsXc0B43u 1Rt5dR+cBgYHAegwMWPqu5SzClYzJSoenggcvjF/rL9n1lLKfY3P2DhDpSTy1F0HavbO kZvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=pWXOBQdhvAPMds+EMpZQo7s8lCPjiiwXqXzmZoWelmA=; b=cYOzYK9cL1kyMw6826PvFsqFzM6Ma+uJYiRWkZitWcnStrRIvZL5wE3RCE41GaG5ms EXD5YYMHF1cE/Ex8zX+16ZVzRyDsM8vWQNIT6iYnuAdzu2j17kW2CpEdchhm72GBhm6g 7kt+eCcARG7qyzjAvhUqB/E3KixxR4y+shOnof8id1AnqlAq1h6r9RMSyNr0U/xq1djU MF7lGOqyfuJserofw+4ujMQa1tT3zEREqHTDtN52ajHez77w5UnwCx7D1uAsb1S8i/qh RbQXRGwflJARCj9hDIR3tc75qzJ9EOInUb6aN1W2h2MuN35P05wXkbf5/uWm/g4nUprC npZw== X-Gm-Message-State: ALyK8tJfShWdsGebwFdTfBRaQ5PLhzNQRnqCwJ76hd7Udgo3zx2lx8ba9YZb6F8K4Hy44Zad X-Received: by 10.36.203.194 with SMTP id u185mr8847355itg.74.1465354105693; Tue, 07 Jun 2016 19:48:25 -0700 (PDT) Received: from kaki.bld.corp.google.com ([2620:0:1005:12:ecc7:4724:4185:1304]) by smtp.gmail.com with ESMTPSA id n31sm10101539ioe.2.2016.06.07.19.48.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jun 2016 19:48:24 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id C3750223F2C; Tue, 7 Jun 2016 20:48:23 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Tue, 7 Jun 2016 20:47:42 -0600 Message-Id: <1465354089-3508-5-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1465354089-3508-1-git-send-email-sjg@chromium.org> References: <1465354089-3508-1-git-send-email-sjg@chromium.org> Cc: Marek Vasut , Tom Rini , Michal Simek , Nathan Rossi , Stefan Roese Subject: [U-Boot] [PATCH 04/31] Makefile: Allow the SPL final link rule to be overridden 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" Overriding the final link rule is possible with U-Boot proper. It us used to create a sandbox image links with host libraries. To build a sandbox SPL image we need the same feature for SPL. To support this, update the SPL link rule so sandbox can override it. Signed-off-by: Simon Glass --- scripts/Makefile.spl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 0997fd9..2b5c995 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -241,8 +241,10 @@ cmd_mksunxiboot = $(objtree)/tools/mksunxiboot $< $@ $(obj)/sunxi-spl.bin: $(obj)/$(SPL_BIN).bin FORCE $(call if_changed,mksunxiboot) -quiet_cmd_u-boot-spl = LD $@ - cmd_u-boot-spl = (cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \ +# Rule to link u-boot-spl +# May be overridden by arch/$(ARCH)/config.mk +quiet_cmd_u-boot-spl ?= LD $@ + cmd_u-boot-spl ?= (cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \ $(patsubst $(obj)/%,%,$(u-boot-spl-init)) --start-group \ $(patsubst $(obj)/%,%,$(u-boot-spl-main)) --end-group \ $(PLATFORM_LIBS) -Map $(SPL_BIN).map -o $(SPL_BIN))