[U-Boot] [RFC PATCH v2 1/7] env: Allow unconditional access if H_PROGRAMMATIC is set

Simon Glass sjg at chromium.org
Sat Nov 19 14:47:29 CET 2016


On 16 November 2016 at 03:29, Bernhard Nortmann
<bernhard.nortmann at web.de> wrote:
> This patch modifies env_flags_validate() in such a way that any
> operation will *always* be allowed if H_PROGRAMMATIC is present.
>
> Without this change, programmatically changing environment vars
> may fail depending on their flags, e.g. when trying to setenv*()
> a variable that is marked "read-only".
> http://lists.denx.de/pipermail/u-boot/2016-April/250237.html
>
> Notes: H_FORCE may be insufficient for this purpose, as it can be
> disabled by CONFIG_ENV_ACCESS_IGNORE_FORCE.
> H_PROGRAMMATIC indicates "U-Boot internal" use. By contrast, any
> user interaction (from U-Boot prompt or scripts) is expected to
> be marked H_INTERACTIVE.
>
> Signed-off-by: Bernhard Nortmann <bernhard.nortmann at web.de>
>
> ---
>
> Changes in v2: None
>
>  common/env_flags.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list