[U-Boot] [PATCH v2 1/2] cmd: nvedit: add whitelist option for env import

Stephen Warren swarren at wwwdotorg.org
Fri May 18 16:00:27 UTC 2018


On 05/18/2018 08:44 AM, Quentin Schulz wrote:
> While the `env export` can take as parameters variables to be exported,
> `env import` does not have such a mechanism of variable selection.
> 
> Let's add a `-w` option that asks `env import` to look for the
> `whitelisted_vars` env variable for a space-separated list of variables
> that are whitelisted.

Would it be better for the -w option to accept a variable name rather 
than hard-coding it as whitelisted_vars? That way, people could 
import/export different sets of variables at different times, and also 
could choose a more use-case-specific variable name than 
whitelisted_vars in order to describe why those variables are "whitelisted".


More information about the U-Boot mailing list