[U-Boot] [PATCH v2] env: Add CONFIG_ENV_SUPPORT

Simon Glass sjg at chromium.org
Fri Sep 27 01:48:52 UTC 2019


On Fri, 6 Sep 2019 at 01:06, Patrick Delaunay <patrick.delaunay at st.com> wrote:
>
> Add a new flag CONFIG_ENV_SUPPORT to compile all
> the environment features in U-Boot (attributes, callbacks
> and flags); it is the supplement of the 2 existing flags
> for SPL/TPL.
> To have ENV support, enable the flag:
> - CONFIG_ENV_SUPPORT for U-Boot proper
> - CONFIG_SPL_ENV_SUPPORT for SPL
> - CONFIG_TPL_ENV_SUPPORT for TPL
>
> This new configuration allows to use the macro
> CONFIG_IS_ENABLED(ENV_SUPPORT) in the code without
> issue and solves the regression introduced by
> commit 7d4776545b0f ("env: solve compilation error
> in SPL"); change_ok was always NULL in U-Boot.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
>
> Changes in v2:
> - Update commit message after Lukasz Majewki review
>
>  cmd/Kconfig            |  2 ++
>  env/Kconfig            |  7 +++++++
>  env/Makefile           | 11 ++++-------
>  include/env_callback.h |  4 ++++
>  include/env_flags.h    |  4 ++++
>  5 files changed, 21 insertions(+), 7 deletions(-)

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


More information about the U-Boot mailing list