mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
bootstd: Add a system bootdev for strange boot methods
Some boot methods don't act on a single bootdev but instead do their own thing. An example is EFI bootmgr which scan various devices using its own logic. Add a bootdev to handle this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
acfa9bdfa7
commit
a080b98981
3 changed files with 73 additions and 1 deletions
|
@ -150,6 +150,12 @@ int dm_scan_other(bool pre_reloc_only)
|
|||
}
|
||||
}
|
||||
|
||||
/* Create the system bootdev too */
|
||||
ret = device_bind_driver(bootstd, "system_bootdev", "system-bootdev",
|
||||
&dev);
|
||||
if (ret)
|
||||
return log_msg_ret("sys", ret);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue