mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/Bds: Added update of Pxe boot option
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron <ronald.cron@arm.com> Reviewed-By: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15656 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e77d2f9db2
commit
2db16368d1
|
@ -727,6 +727,17 @@ BdsLoadOptionPxeCreateDevicePath (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Update the parameters of a Pxe boot option
|
||||||
|
|
||||||
|
@param[in] OldDevicePath Current complete device path of the Pxe boot option.
|
||||||
|
This has to be a valid complete Pxe boot option path.
|
||||||
|
@param[in] FileName Description of the file the path is asked for
|
||||||
|
@param[out] NewDevicePath Pointer to the new complete device path.
|
||||||
|
|
||||||
|
@retval EFI_SUCCESS Update completed
|
||||||
|
@retval EFI_OUT_OF_RESOURCES Fail to perform the update due to lack of resource
|
||||||
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
BdsLoadOptionPxeUpdateDevicePath (
|
BdsLoadOptionPxeUpdateDevicePath (
|
||||||
IN EFI_DEVICE_PATH *OldDevicePath,
|
IN EFI_DEVICE_PATH *OldDevicePath,
|
||||||
|
@ -735,8 +746,17 @@ BdsLoadOptionPxeUpdateDevicePath (
|
||||||
OUT BOOLEAN *RequestBootType
|
OUT BOOLEAN *RequestBootType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (0);
|
//
|
||||||
return EFI_UNSUPPORTED;
|
// Make a copy of the complete device path that is made of :
|
||||||
|
// the device path of the device supporting the Pxe base code protocol
|
||||||
|
// followed by an end node.
|
||||||
|
//
|
||||||
|
*NewDevicePath = DuplicateDevicePath (OldDevicePath);
|
||||||
|
if (*NewDevicePath == NULL) {
|
||||||
|
return EFI_OUT_OF_RESOURCES;
|
||||||
|
} else {
|
||||||
|
return EFI_SUCCESS;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
|
|
Loading…
Reference in New Issue