mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
bootstd: Treat DHCP and PXE as bootdev labels
These are associated with the ethernet boot device but do not match its uclass name, so handle them as special cases. Provide a way to pass flags through with the bootdev so that we know how to process it. The flags are checked by the bootmeths, to ensure that only the selected bootmeth is used. While these both use the network device, they work quite differently. It is common to run only one of these, or to run PXE before DHCP. Provide bootflow flags to control which methods are used. Check these in the two bootmeths so that only the chosen one is used. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
5143a41e10
commit
d9f48579dc
10 changed files with 81 additions and 34 deletions
|
@ -57,7 +57,7 @@ static int do_bootdev_select(struct cmd_tbl *cmdtp, int flag, int argc,
|
|||
std->cur_bootdev = NULL;
|
||||
return 0;
|
||||
}
|
||||
if (bootdev_find_by_any(argv[1], &dev))
|
||||
if (bootdev_find_by_any(argv[1], &dev, NULL))
|
||||
return CMD_RET_FAILURE;
|
||||
|
||||
std->cur_bootdev = dev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue