]> git.baikalelectronics.ru Git - uboot.git/commit
bootstd: Allow scanning a single bootdev label
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:48:15 +0000 (10:48 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:41 +0000 (18:11 -0500)
commitcd0fa0d293e6fc3b7aaaf61b550ed63304e470c0
tree34db142da2cb42b692d8589502234594ee7bc078
parent11ccfa198cdbfca45af2fc47dbf886ea6ce2e83e
bootstd: Allow scanning a single bootdev label

We want to support scanning a single label, like 'mmc' or 'usb0'. Add
this feature by plumbing the label through to the iterator, setting a
flag to indicate that only siblings of the initial device should be used.

This means that scanning a bootdev by its name is not supported anymore.
That feature doesn't seem very useful in practice, so it is no great loss.

Add a test for bootdev_find_by_any() while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootdev-uclass.c
boot/bootflow.c
cmd/bootflow.c
include/bootdev.h
include/bootflow.h
test/boot/bootdev.c
test/boot/bootflow.c