diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-17 20:47:34 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-24 02:11:40 +0300 |
commit | c7b63d500df707bd9c9041e0dae3a25f56098978 (patch) | |
tree | 1e9e545f889364b42b4772393bfd93f0e365baa4 /cmd | |
parent | bd90b092882099afa3786829036c82d6a4241fc8 (diff) | |
download | u-boot-c7b63d500df707bd9c9041e0dae3a25f56098978.tar.xz |
bootstd: Support running bootdev hunters
Add a way to run a bootdev hunter to find bootdevs of a certain type. Add
this to the 'bootdev hunt' command. Test for this are added in a later
patch, since a useful test needs some hunters to work with.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bootdev.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/bootdev.c b/cmd/bootdev.c index 80bfe2812e..28866faac7 100644 --- a/cmd/bootdev.c +++ b/cmd/bootdev.c @@ -128,7 +128,12 @@ static int do_bootdev_hunt(struct cmd_tbl *cmdtp, int flag, int argc, if (list) { bootdev_list_hunters(priv); } else { - /* TODO: implement hunting */ + ret = bootdev_hunt(spec, true); + if (ret) { + printf("Failed (err=%dE)\n", ret); + + return CMD_RET_FAILURE; + } } return 0; |