diff options
author | Samuel Dionne-Riel <samuel@dionne-riel.com> | 2021-12-20 18:31:56 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-07 16:50:42 -0400 |
commit | ec57bd745470fc47b278c21d2eebc95c27c442e5 (patch) | |
tree | b8112d9b6b585183d99afcb49b0557f278e3b206 /env | |
parent | 8d61237edbf6314a701cf78da2c5893a73ff5438 (diff) | |
download | u-boot-ec57bd745470fc47b278c21d2eebc95c27c442e5.tar.gz u-boot-ec57bd745470fc47b278c21d2eebc95c27c442e5.tar.bz2 u-boot-ec57bd745470fc47b278c21d2eebc95c27c442e5.zip |
cmd: env: Add `indirect` to indirectly set values
This allows an ergonomic-enough approximation of ${!variable} expansion.
This could be used the following way:
```
for target in ${boot_targets}; do
env indirect target_name target_name_${target}
# ...
done
```
Assuming `target_name_mmc0` and similar are set appropriately.
A default value can be optionally provided.
Note: this acts on environment variables, not hush variables.
Signed-off-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: "Marek BehĂșn" <marek.behun@nic.cz>
[trini: Don't enable by default]
Diffstat (limited to 'env')
0 files changed, 0 insertions, 0 deletions