[PATCH v2 1/2] env: setenv add resolve value option

Tom Rini trini at konsulko.com
Fri Apr 8 15:11:00 CEST 2022


On Fri, Apr 08, 2022 at 09:09:41AM -0400, Sean Anderson wrote:
> On 4/7/22 2:05 PM, Tom Rini wrote:
> > On Fri, Nov 19, 2021 at 12:36:46PM +0800, Artem Lapkin wrote:
> > > Add possibility setup env variable with additional resolving vars inside
> > 
> > > value.
> > > 
> > > Usage examples:
> > > 
> > > => setenv a hello; setenv b world; setenv c '${a} ${b}'
> > > => setenv -r d '${c}! ${a}...'
> > > => printenv d
> > > d=hello world! hello...
> > > 
> > > /* internal usage example */
> > > env_resolve("d", "${c}! ${a}...");
> > > /* d="hello world! hello..." */
> > > 
> > > Signed-off-by: Artem Lapkin <art at khadas.com>
> > > Reviewed-by: Simon Glass <sjg at chromium.org>
> > 
> > This break building on a number of platforms such as am335x_evm.
> 
> Should this even be applied in the first place? I agree with Wolfgang's
> objections. This should be done by the shell (if anything).

Ah true, thanks for reminding me.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220408/c1b080ad/attachment.sig>


More information about the U-Boot mailing list