aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRuslan Trofymenko2019-06-14 17:01:26 +0300
committerTom Rini2019-07-24 13:16:29 -0400
commitbe683756f620349966e0ebb4a5e02e5ff03c8a8e (patch)
tree4445e8cb8c96c0725c0f031a41f38c6c16bea2f9 /common
parentfe4243870df152f839f88e5aa355f53cfba0a866 (diff)
cmd: part: Add 'number' sub-command
This sub-command serves for getting the partition index from partition name. Also it can be used to test the existence of specified partition. Use case: For example, in most CI environments this U-Boot command for automatic testing of Linux rootfs is used: => setenv bootpart 1:f where 0xf is "userdata" partition. But the number of "userdata" partition can be changed any time, when partition table is changed. So it would be nice to get rid of that 0xf magic number and use partition name instead, like this: => part number mmc 1 userdata part_num => setenv bootpart 1:${part_num} Signed-off-by: Ruslan Trofymenko <ruslan.trofymenko@linaro.org> Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: Alistair Strachan <astrachan@google.com> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions