From patchwork Thu Nov 16 09:22:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 119033 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp5360958qgn; Thu, 16 Nov 2017 01:28:35 -0800 (PST) X-Google-Smtp-Source: AGs4zMbwKe18WFyQNiUEtpGA2XFGluq0yNlev1knFq5uYs3VL+9LXy8boFpdUMYBfeX/vbN6IdeS X-Received: by 10.80.157.141 with SMTP id w13mr1906568ede.151.1510824514932; Thu, 16 Nov 2017 01:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510824514; cv=none; d=google.com; s=arc-20160816; b=LLMsLdBywwguKlVd71GEvX/EV57SWGNXOKregrGJaVjE0gNohLxCyugfhrD6uh8MDu LUgAeTBc6N2V43ZbsTteh8pjoQoYL58wQxuWetcoih7q3xGX93bx3GCjllc35jDo2fw1 LN37iIZt0W7MCTDl1g2X+G+8Jc/HECyDftV+4ie41NtfrdPP7H6Xnz7dZfzqVLd6PxL2 jL6Bdp/jg3kKLt3FyX8itYmnnhZm59QLjYIAq5WlpHoGLe79l3lriKFHczLYtWweq1P5 Ygw/Ic+hH+nBhRr6UFneNHOUU1N2mnPl+TYpRPeGpJV0Osddy1QKm3I8hpZo6AX7utJ8 Tufg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=OfkhBYnvI1YwVWWSYf6py2O7MbMuOlxDSyGnVosdEvw=; b=I+F5Eg59dQebez9sYMV0UlyRd6idUCIVi3a/Mqan7V7hGUDpIJPpsXK78hyZr61oKA ak1Jd25nhmrt/jjJLR50zgbCOT8RZKGVy9mmKoaT3Fcd+fQrdzrX12MV1DWdu5KzI5nY skD9Bs+17xXPUBBWVy4Xpum0Cv6TjbBEo8XHbbIZbdCg4TgbCRoOwpZKhzSl5Qo37Tod GqtR301yC597MMCM+/YEfEedmW+QWudmWetQ/JvXQHj20D9LrSGm6Ks9RX/vk4aYUj+g DtPjLO1unvYg8Kx6PZhwrXP7dNugS1aZnOkEFtwaPaTptp6mveNR8gQ17oJ0MSDz8NcC o3Kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id w1si847416edk.103.2017.11.16.01.28.34; Thu, 16 Nov 2017 01:28:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 64157C21DC1; Thu, 16 Nov 2017 09:25:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E3040C21DE9; Thu, 16 Nov 2017 09:24:27 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CDE1FC21DCE; Thu, 16 Nov 2017 09:23:00 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 943C1C21DAB for ; Thu, 16 Nov 2017 09:22:57 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 8B6DD2093B; Thu, 16 Nov 2017 10:22:56 +0100 (CET) Received: from localhost (unknown [185.94.189.187]) by mail.free-electrons.com (Postfix) with ESMTPSA id C0AA9213DD; Thu, 16 Nov 2017 10:22:42 +0100 (CET) From: Maxime Ripard To: Tom Rini Date: Thu, 16 Nov 2017 10:22:29 +0100 Message-Id: <20171116092231.27740-9-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171116092231.27740-1-maxime.ripard@free-electrons.com> References: <20171116092231.27740-1-maxime.ripard@free-electrons.com> Cc: Andre Przywara , agraf@suse.de, u-boot@lists.denx.de, Maxime Ripard , Jagan Teki Subject: [U-Boot] [RFC PATCH 08/10] env: Mark env_get_location as weak X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Allow boards and architectures to override the default environment lookup code by overriding env_get_location. Signed-off-by: Maxime Ripard Reviewed-by: Lukasz Majewski --- env/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/env.c b/env/env.c index 6af9f897b0ae..aceb77d4073c 100644 --- a/env/env.c +++ b/env/env.c @@ -62,7 +62,7 @@ static enum env_location env_locations[] = { static enum env_location env_load_location; -static enum env_location env_get_location(enum env_operation op, int prio) +__weak enum env_location env_get_location(enum env_operation op, int prio) { switch (op) { case ENVO_GET_CHAR: