[U-Boot] [PATCH 1/3] common: Let board decide if env should be loaded

Marek Vasut marek.vasut at gmail.com
Tue Apr 17 01:02:13 UTC 2018


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 <marek.vasut+renesas at gmail.com>
> Cc: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
> Cc: Tom Rini <trini at konsulko.com>

Please ignore, there's a better way to do this.

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list