]> git.dujemihanovic.xyz Git - u-boot.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)
commit91943ff7038f9c47fb310dbc22150b5664c8fbf7
tree34db142da2cb42b692d8589502234594ee7bc078
parent47aedc29dcb9871e076f6e4aa82004633af513ef
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