From: Marek Vasut Date: Tue, 17 Apr 2018 03:02:13 +0200 Subject: [U-Boot] [PATCH 1/3] common: Let board decide if env should be loaded In-Reply-To: <20180416204452.10906-1-marek.vasut+renesas@gmail.com> References: <20180416204452.10906-1-marek.vasut+renesas@gmail.com> Message-ID: <7be831e3-ffcf-8622-e4ea-2d7505865c5b@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/16/2018 10:44 PM, Marek Vasut wrote: > Add board_should_load_env() hook which lets board code decide whether > environment should be loaded. This is useful when restoring the board > over ie. JTAG where the environment may interfere and where it may be > desired to ignore the environment present on the board. > > The return value of board_should_load_env() is: > 0 - do not load environment > 1 - load environment > -EAGAIN - default behavior > > Signed-off-by: Marek Vasut > Cc: Nobuhiro Iwamatsu > Cc: Tom Rini Please ignore, there's a better way to do this. -- Best regards, Marek Vasut