Skip to content

Commit

Permalink
Library: Fixed UEFI_IMAGE_SOURCE semantics. (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailKrichanov authored Dec 4, 2023
1 parent c65fb5b commit 0a62573
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Legacy/BootPlatform/EfiLdr/EfiLdr.inf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
PrintLib
LzmaDecompressLib
SerialPortLib
UefiImageOnlyNonFvLib
UefiImageOnlyFvLib

[Sources]
Support.h
Expand Down
2 changes: 1 addition & 1 deletion Legacy/BootPlatform/EfiLdr/PeLoader.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ EfiLdrLoadImage (
&ImageContext,
FHand,
BufferSize,
UEFI_IMAGE_SOURCE_NON_FV,
UEFI_IMAGE_SOURCE_FV,
UefiImageOriginFv
);
if (EFI_ERROR (Status)) {
Expand Down
2 changes: 1 addition & 1 deletion Library/OcBootManagementLib/ImageLoader.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ OcImageLoaderLoad (
&ImageContext,
SourceBuffer,
(UINT32)SourceSize,
UEFI_IMAGE_SOURCE_FV,
UEFI_IMAGE_SOURCE_NON_FV,
UefiImageOriginUserImage
);
if (EFI_ERROR (ImageStatus)) {
Expand Down
2 changes: 1 addition & 1 deletion Library/OcBootManagementLib/OcBootManagementLib.inf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
MemoryAllocationLib
PrintLib
UefiBootServicesTableLib
UefiImageLib
UefiImageOnlyNonFvLib
OcApfsLib
OcAppleBootPolicyLib
OcAppleChunklistLib
Expand Down
2 changes: 1 addition & 1 deletion Library/OcPeCoffExtLib/OcPeCoffExtLib.inf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
OpenCorePkg/OpenCorePkg.dec

[LibraryClasses]
UefiImageLib
PeCoffLib2
UefiRuntimeServicesTableLib
UefiBootServicesTableLib
MemoryAllocationLib
Expand Down
3 changes: 2 additions & 1 deletion OpenCorePkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@
gEfiMdePkgTokenSpaceGuid.PcdImageLoaderAlignmentPolicy|0xFFFFFFFF
gEfiMdePkgTokenSpaceGuid.PcdImageLoaderRelocTypePolicy|0xFFFFFFFF
gEfiMdePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000003

gEfiMdePkgTokenSpaceGuid.PcdUefiImageFormatSupportNonFv|0x01

[PcdsPatchableInModule]
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterAccessWidth|8
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
Expand Down
3 changes: 3 additions & 0 deletions OpenDuetPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@
DxeServicesTableLib|MdeModulePkg/Library/DxeCoreDxeServicesTableLib/DxeCoreDxeServicesTableLib.inf
UefiBootServicesTableLib|MdeModulePkg/Library/DxeCoreUefiBootServicesTableLib/DxeCoreUefiBootServicesTableLib.inf
UefiRuntimeServicesTableLib|MdeModulePkg/Library/DxeCoreUefiRuntimeServicesTableLib/DxeCoreUefiRuntimeServicesTableLib.inf
<PcdsFixedAtBuild>
gEfiMdePkgTokenSpaceGuid.PcdUefiImageFormatSupportFv|0x03
}

MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
Expand Down Expand Up @@ -259,6 +261,7 @@
gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel|0x0
gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0
gOpenCorePkgTokenSpaceGuid.PcdCanaryAllowRdtscFallback|TRUE
gEfiMdePkgTokenSpaceGuid.PcdUefiImageFormatSupportFv|0x02

[BuildOptions]
MSFT:NOOPT_*_*_CC_FLAGS = -D OC_TARGET_RELEASE=1 /FAcs -Dinline=__inline /GS /kernel
Expand Down

0 comments on commit 0a62573

Please sign in to comment.