[U-Boot] [RFC PATCH v2 7/7] env: Automatically mark dynamic configuration info as "do not export"

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


Hi Bernhard,

On 16 November 2016 at 03:30, Bernhard Nortmann
<bernhard.nortmann at web.de> wrote:
> This is an attempt to prevent such information from ending up
> in exported environment data, especially when doing "saveenv".
> (http://lists.denx.de/pipermail/u-boot/2015-September/227611.html)
>
> The patch makes use of the new setenv_transient() helper for
> environment variables that get updated via network configuration:
> BOOTP/DHCP (netboot_update_env), CDP (cdp_update_env) and
> link-local protocol (do_link_local).
>
> Signed-off-by: Bernhard Nortmann <bernhard.nortmann at web.de>
> ---
>
> Changes in v2: None
>
>  cmd/net.c | 34 +++++++++++++++++-----------------
>  1 file changed, 17 insertions(+), 17 deletions(-)

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

How would you make these variables non-transient? Does the transient
nature show up in 'printenv'?

Regards,
Simon


More information about the U-Boot mailing list