[RFC RFT PATCH] env: spl: filter the variables in default environment of SPL or TPL

Wolfgang Denk wd at denx.de
Wed Mar 18 15:51:10 CET 2020


Dear Patrick,

In message <20200318143602.23253-1-patrick.delaunay at st.com> you wrote:
> Use a new option CONFIG_SPL_ENV_VARS to filter the variables included
> in the default environment used in SPL (and TPL).
>
> That allows to reduce the size of default_environment[].

Sorry, but NAK.  we had this discussion a couple of times before.
It is mandatory that both SPL and U-Boot proper will use the _same_
environment, including the same default environment, or all kind of
havoc may result.  Just think of situations where Falcon Mode is
being used and SPL and U-Boot proper would be using different
settings.

If your default environment is too big for the SPL, then make it
smaller.  If you need additional settings in U-Boot, there are many
ways to load thise there.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"If that makes any sense to you, you have a big problem."
                                  -- C. Durance, Computer Science 234


More information about the U-Boot mailing list