From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Tue, 26 Dec 2017 12:21:23 +0100 Subject: [U-Boot] [PATCH 03/11] env: add support for whitelisting variables from secondary environments In-Reply-To: <45316f927ce86b20958468367f7d642a76f32888.1513975247.git-series.quentin.schulz@free-electrons.com> References: <45316f927ce86b20958468367f7d642a76f32888.1513975247.git-series.quentin.schulz@free-electrons.com> Message-ID: <20171226122123.31e20cb7@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Quentin, > +config ENV_VAR_WHITELIST > + bool "Enable overriding some variables from secondary > environments" > + help > + This allows overriding some variables from secondary > environments. > + After the first valid environment is loaded, a secondary > environment > + is pre-loaded and its variables that are present in the > whitelist will > + be added to the current environment or will override > existing > + variables. This description seems to do what is already done in the "env import" command. It also allows for setting env variables from HUSH prompt. Maybe it would be possible to re-use or extend it to suits your needs? Best regards, Lukasz Majewski -- 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: