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

Tom Rini trini at konsulko.com
Thu Apr 7 20:05:26 CEST 2022


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.

-- 
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/20220407/909a850a/attachment.sig>


More information about the U-Boot mailing list