[PATCH v4 3/3] env: Add CONFIG_ENV_FULL_SUPPORT

Patrick DELAUNAY patrick.delaunay at st.com
Wed Mar 18 17:06:02 CET 2020


Hi,

> From: Patrick DELAUNAY <patrick.delaunay at st.com>
> Sent: jeudi 3 octobre 2019 09:24
> To: u-boot at lists.denx.de
> 
> Add a new flag CONFIG_ENV_FULL_SUPPORT to compile all
> the environment features (attributes, callbacks
> and flags) in U-Boot, TPL and SPL.
> 
> This flag replace the existing flags for SPL and TPL
> (CONFIG_SPL_ENV_SUPPORT / CONFIG_TPL_ENV_SUPPORT), because
> the same support of environment features is mandatory for U-Boot,
> SPL and TPL.
> 
> To deactivate the load/save environment support in SPL / TPL,
> the board need to activate CONFIG_SPL_ENV_IS_NOWHERE or
> CONFIG_TPL_ENV_IS_NOWHERE.
> 
> With this patch, the environment is activated by default in SPL
> and TPL, which include the content of default_environment[] as
> U-boot. To avoid to increase their size, this patch also add
> 3 new confif : CONFIG_$(SPL_TPL_)ENV_DEFAULT.
> It is deactivated by default for SPL/TPL and activated by
> default for U-Boot, the default environment for SPL/TPL is empty
> and it will be populated only when it will be loaded from storage
> medium.
> 
> All the test on CONFIG_SPL_ENV_SUPPORT are replaced by the
> ENV_IS_SOMEWHERE macro, which tests if the environment is
> storage medium.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
Hi Tom,

I try to solve default environment size issue in patch =

http://patchwork.ozlabs.org/patch/1257545/
[RFC RFT PATCH] env: spl: filter the variables in default environment of SPL or TPL

But as it is not acceptable and I don't see other solution, 
I won't push v5 and I considere this serie abandoned.

http://patchwork.ozlabs.org/patch/1171180/

Thanks

Patrick


More information about the U-Boot mailing list