1, Add <Library/DevicePathLib.h> for all source that use device path utility macros
2, Add DevicePathLib library class to module's INF that use device path utility macros git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6456 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -691,9 +691,7 @@ CoreFvToDevicePath (
|
||||
// Build a device path to the file in the FV to pass into gBS->LoadImage
|
||||
//
|
||||
EfiInitializeFwVolDevicepathNode (&mFvDevicePath.File, DriverName);
|
||||
mFvDevicePath.End.Type = EFI_END_ENTIRE_DEVICE_PATH;
|
||||
mFvDevicePath.End.SubType = END_ENTIRE_DEVICE_PATH_SUBTYPE;
|
||||
SetDevicePathNodeLength (&mFvDevicePath.End, sizeof (EFI_DEVICE_PATH_PROTOCOL));
|
||||
SetDevicePathEndNode (&mFvDevicePath.End);
|
||||
|
||||
FileNameDevicePath = AppendDevicePath (
|
||||
FvDevicePath,
|
||||
@@ -1046,9 +1044,7 @@ CoreFwVolEventProtocolNotify (
|
||||
// be initialized completely.
|
||||
//
|
||||
EfiInitializeFwVolDevicepathNode (&mFvDevicePath.File, &NameGuid);
|
||||
mFvDevicePath.End.Type = EFI_END_ENTIRE_DEVICE_PATH;
|
||||
mFvDevicePath.End.SubType = END_ENTIRE_DEVICE_PATH_SUBTYPE;
|
||||
SetDevicePathNodeLength (&mFvDevicePath.End, sizeof (EFI_DEVICE_PATH_PROTOCOL));
|
||||
SetDevicePathEndNode (&mFvDevicePath.End);
|
||||
|
||||
gDxeCoreLoadedImage->FilePath = DuplicateDevicePath (
|
||||
(EFI_DEVICE_PATH_PROTOCOL *)&mFvDevicePath
|
||||
|
Reference in New Issue
Block a user