mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 04:51:17 +02: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:
@@ -104,6 +104,21 @@ enum bootflow_flags_t {
|
||||
BOOTFLOWF_SKIP_GLOBAL = 1 << 4,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum bootflow_meth_flags_t - flags controlling which bootmeths are used
|
||||
*
|
||||
* Used during iteration, e.g. by bootdev_find_by_label(), to determine which
|
||||
* bootmeths are used for the current bootdev. The flags reset when the bootdev
|
||||
* changes
|
||||
*
|
||||
* @BOOTFLOW_METHF_DHCP_ONLY: Only use dhcp (scripts and EFI)
|
||||
* @BOOTFLOW_METHF_PXE_ONLY: Only use pxe (PXE boot)
|
||||
*/
|
||||
enum bootflow_meth_flags_t {
|
||||
BOOTFLOW_METHF_DHCP_ONLY = 1 << 0,
|
||||
BOOTFLOW_METHF_PXE_ONLY = 1 << 1,
|
||||
};
|
||||
|
||||
/**
|
||||
* struct bootflow_iter - state for iterating through bootflows
|
||||
*
|
||||
|
Reference in New Issue
Block a user