From 4fb31c2c5828aa51a8bfed98778d1be919981d2b Mon Sep 17 00:00:00 2001 From: klu2 Date: Wed, 26 Sep 2007 09:35:36 +0000 Subject: [PATCH] 1) Add library classes of S3Lib and RecoveryLib in MdeModulePkg 2) Add NULL instance for above library classes in MdeModulePkg 3) Add Framework implement library instance for above two library classes in IntelFrameworkModulePkg. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3930 6f19259b-4bc3-4df7-8a09-765794883524 --- .../IntelFrameworkModulePkg.dsc | 8 ++- .../Library/PeiRecoveryLib/PeiRecoveryLib.c | 46 +++++++++++++++++ .../Library/PeiRecoveryLib/PeiRecoveryLib.inf | 50 ++++++++++++++++++ .../Library/PeiS3Lib/PeiS3Lib.c | 46 +++++++++++++++++ .../Library/PeiS3Lib/PeiS3Lib.inf | 51 +++++++++++++++++++ MdeModulePkg/Core/DxeIplPeim/DxeIpl.h | 5 +- MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 3 +- MdeModulePkg/Core/DxeIplPeim/DxeLoad.c | 23 +-------- MdeModulePkg/Include/Library/RecoveryLib.h | 33 ++++++++++++ MdeModulePkg/Include/Library/S3Lib.h | 32 ++++++++++++ .../PeiRecoveryLibNull/PeiRecoveryLibNull.c | 30 +++++++++++ .../PeiRecoveryLibNull/PeiRecoveryLibNull.inf | 44 ++++++++++++++++ .../Library/PeiS3LibNull/PeiS3LibNull.c | 30 +++++++++++ .../Library/PeiS3LibNull/PeiS3LibNull.inf | 43 ++++++++++++++++ MdeModulePkg/MdeModulePkg.dec | 4 +- MdeModulePkg/MdeModulePkg.dsc | 7 ++- Nt32Pkg/Nt32Pkg.dsc | 2 + 17 files changed, 429 insertions(+), 28 deletions(-) create mode 100644 IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.c create mode 100644 IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.inf create mode 100644 IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c create mode 100644 IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.inf create mode 100644 MdeModulePkg/Include/Library/RecoveryLib.h create mode 100644 MdeModulePkg/Include/Library/S3Lib.h create mode 100644 MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.c create mode 100644 MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.inf create mode 100644 MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.c create mode 100644 MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.inf diff --git a/IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc b/IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc index a94f8363b7..ebe0bceefa 100644 --- a/IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc +++ b/IntelFrameworkModulePkg/IntelFrameworkModulePkg.dsc @@ -52,7 +52,9 @@ UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf OemHookStatusCodeLib|IntelFrameworkModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf SerialPortLib|MdePkg/Library/SerialPortLibNull/SerialPortLibNull.inf - + S3Lib|IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.inf + RecoveryLib|IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.inf + [LibraryClasses.common.PEIM] HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf @@ -169,6 +171,10 @@ IntelFrameworkModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf IntelFrameworkModulePkg/Library/PciIncompatibleDeviceSupportLib/PciIncompatibleDeviceSupportLib.inf IntelFrameworkModulePkg/Library/GraphicsLib/GraphicsLib.inf + + IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.inf + IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.inf + IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf diff --git a/IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.c b/IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.c new file mode 100644 index 0000000000..053831235b --- /dev/null +++ b/IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.c @@ -0,0 +1,46 @@ +/**@file + Recovery Library. This library class defines a set of methods related do recovery. + +Copyright (c) 2006 - 2007 Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ +#include +#include +#include +#include + +#include + +/** + Calling this function causes the system do recovery. + + @retval EFI_SUCESS Sucess to do recovery. + @retval Others Fail to do recovery. +**/ +EFI_STATUS +EFIAPI +Recovery ( + VOID + ) +{ + EFI_STATUS Status; + EFI_PEI_RECOVERY_MODULE_PPI *PeiRecovery; + + Status = PeiServicesLocatePpi ( + &gEfiPeiRecoveryModulePpiGuid, + 0, + NULL, + (VOID **)&PeiRecovery + ); + ASSERT_EFI_ERROR (Status); + + return PeiRecovery->LoadRecoveryCapsule (GetPeiServicesTablePointer(), PeiRecovery); +} + diff --git a/IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.inf b/IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.inf new file mode 100644 index 0000000000..90fcbacb70 --- /dev/null +++ b/IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.inf @@ -0,0 +1,50 @@ +#/** @file +# Recovery Library for PEIM +# +# Copyright (c) 2006 - 2007, Intel Corporation. +# +# All rights reserved. This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +# +#**/ + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = PeiRecoveryLib + FILE_GUID = C0227547-0811-4cbb-ABEA-DECD22829122 + MODULE_TYPE = PEIM + VERSION_STRING = 1.0 + LIBRARY_CLASS = RecoveryLib|PEIM + EDK_RELEASE_VERSION = 0x00020000 + EFI_SPECIFICATION_VERSION = 0x00020000 + + +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = IA32 X64 IPF EBC +# + +[Sources.common] + PeiRecoveryLib.c + +[Packages] + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + IntelFrameworkPkg/IntelFrameworkPkg.dec + IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec + +[LibraryClasses] + BaseLib + PeiServicesTablePointerLib + DebugLib + +[Ppis] + gEfiPeiRecoveryModulePpiGuid # PPI ALWAYS_CONSUMED + + \ No newline at end of file diff --git a/IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c b/IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c new file mode 100644 index 0000000000..875e1169f2 --- /dev/null +++ b/IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.c @@ -0,0 +1,46 @@ +/**@file + S3 Library. This library class defines a set of methods related do S3 mode + +Copyright (c) 2006 - 2007 Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ +#include +#include +#include +#include + +#include + +/** + Calling this function causes the system restore config from S3. + + @retval EFI_SUCESS Sucess to restore config from S3. + @retval Others Fail to restore config from S3. +**/ +EFI_STATUS +EFIAPI +S3RestoreConfig ( + VOID + ) +{ + EFI_STATUS Status; + EFI_PEI_S3_RESUME_PPI *S3Resume; + + Status = PeiServicesLocatePpi ( + &gEfiPeiS3ResumePpiGuid, + 0, + NULL, + (VOID **)&S3Resume + ); + ASSERT_EFI_ERROR (Status); + + return S3Resume->S3RestoreConfig (GetPeiServicesTablePointer()); +} + diff --git a/IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.inf b/IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.inf new file mode 100644 index 0000000000..929e230c71 --- /dev/null +++ b/IntelFrameworkModulePkg/Library/PeiS3Lib/PeiS3Lib.inf @@ -0,0 +1,51 @@ +#/** @file +# Graphics Library for UEFI drivers +# +# This library provides supports for basic graphic functions. +# Copyright (c) 2006 - 2007, Intel Corporation. +# +# All rights reserved. This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +# +#**/ + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = PeiS3Lib + FILE_GUID = EFB7D3A8-DEB9-4bed-B6D6-3B09BEEB835A + MODULE_TYPE = PEIM + VERSION_STRING = 1.0 + LIBRARY_CLASS = S3Lib|PEIM + EDK_RELEASE_VERSION = 0x00020000 + EFI_SPECIFICATION_VERSION = 0x00020000 + + +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = IA32 X64 IPF EBC +# + +[Sources.common] + PeiS3Lib.c + +[Packages] + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + IntelFrameworkPkg/IntelFrameworkPkg.dec + IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec + +[LibraryClasses] + BaseLib + PeiServicesTablePointerLib + DebugLib + +[Ppis] + gEfiPeiS3ResumePpiGuid # PPI ALWAYS_CONSUMED + + diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.h b/MdeModulePkg/Core/DxeIplPeim/DxeIpl.h index 3cd9ebac4c..9df5745e30 100644 --- a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.h +++ b/MdeModulePkg/Core/DxeIplPeim/DxeIpl.h @@ -22,7 +22,6 @@ Abstract: #include #include -#include #include #include #include @@ -30,7 +29,6 @@ Abstract: #include #include #include -#include #include #include #include @@ -52,7 +50,8 @@ Abstract: #include #include #include - +#include +#include #define STACK_SIZE 0x20000 #define BSP_STORE_SIZE 0x4000 diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf b/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf index ff003e114b..820350316b 100644 --- a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf +++ b/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf @@ -75,7 +75,8 @@ BaseLib PeimEntryPoint DebugLib - + S3Lib + RecoveryLib [Protocols] gEfiCustomizedDecompressProtocolGuid # PROTOCOL SOMETIMES_PRODUCED diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c index 089e3bff66..2042efae6d 100644 --- a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c +++ b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c @@ -185,8 +185,6 @@ DxeLoadCore ( EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint; EFI_PEI_PE_COFF_LOADER_PROTOCOL *PeiEfiPeiPeCoffLoader; EFI_BOOT_MODE BootMode; - EFI_PEI_RECOVERY_MODULE_PPI *PeiRecovery; - EFI_PEI_S3_RESUME_PPI *S3Resume; EFI_PEI_FV_HANDLE VolumeHandle; EFI_PEI_FILE_HANDLE FileHandle; UINTN Instance; @@ -198,27 +196,10 @@ DxeLoadCore ( ASSERT_EFI_ERROR(Status); if (BootMode == BOOT_ON_S3_RESUME) { - Status = PeiServicesLocatePpi ( - &gEfiPeiS3ResumePpiGuid, - 0, - NULL, - (VOID **)&S3Resume - ); - ASSERT_EFI_ERROR (Status); - - Status = S3Resume->S3RestoreConfig (PeiServices); + Status = S3RestoreConfig(); ASSERT_EFI_ERROR (Status); } else if (BootMode == BOOT_IN_RECOVERY_MODE) { - - Status = PeiServicesLocatePpi ( - &gEfiPeiRecoveryModulePpiGuid, - 0, - NULL, - (VOID **)&PeiRecovery - ); - ASSERT_EFI_ERROR (Status); - - Status = PeiRecovery->LoadRecoveryCapsule (PeiServices, PeiRecovery); + Status = Recovery (); if (EFI_ERROR (Status)) { DEBUG ((EFI_D_ERROR, "Load Recovery Capsule Failed.(Status = %r)\n", Status)); CpuDeadLoop (); diff --git a/MdeModulePkg/Include/Library/RecoveryLib.h b/MdeModulePkg/Include/Library/RecoveryLib.h new file mode 100644 index 0000000000..6ec4c58b8b --- /dev/null +++ b/MdeModulePkg/Include/Library/RecoveryLib.h @@ -0,0 +1,33 @@ +/** @file + Recovery Library. This library class defines a set of methods related recovery mode. + + Copyright (c) 2005 - 2007, Intel Corporation + All rights reserved. This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license.php + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef __RECOVERY_LIB_H__ +#define __RECOVERY_LIB_H__ + +/** + Calling this function causes the system do recovery. + + @retval EFI_SUCESS Sucess to do recovery. + @retval Others Fail to do recovery. +**/ +EFI_STATUS +EFIAPI +Recovery ( + VOID + ) +; + +#endif + + diff --git a/MdeModulePkg/Include/Library/S3Lib.h b/MdeModulePkg/Include/Library/S3Lib.h new file mode 100644 index 0000000000..0059e0193c --- /dev/null +++ b/MdeModulePkg/Include/Library/S3Lib.h @@ -0,0 +1,32 @@ +/** @file + S3 Library. This library class defines a set of methods related do S3 mode. + + Copyright (c) 2005 - 2007, Intel Corporation + All rights reserved. This program and the accompanying materials + are licensed and made available under the terms and conditions of the BSD License + which accompanies this distribution. The full text of the license may be found at + http://opensource.org/licenses/bsd-license.php + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef __S3_LIB_H__ +#define __S3_LIB_H__ + +/** + Calling this function causes the system restore config from S3. + + @retval EFI_SUCESS Sucess to restore config from S3. + @retval Others Fail to restore config from S3. +**/ +EFI_STATUS +EFIAPI +S3RestoreConfig ( + VOID + ) +; + +#endif + diff --git a/MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.c b/MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.c new file mode 100644 index 0000000000..2638955688 --- /dev/null +++ b/MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.c @@ -0,0 +1,30 @@ +/**@file + Recovery Library. This library class defines a set of methods related do recovery. + +Copyright (c) 2006 - 2007 Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ +#include + +/** + Calling this function causes the system do recovery. + + @retval EFI_SUCESS Sucess to do recovery. + @retval Others Fail to do recovery. +**/ +EFI_STATUS +EFIAPI +Recovery ( + VOID + ) +{ + return EFI_UNSUPPORTED; +} + diff --git a/MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.inf b/MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.inf new file mode 100644 index 0000000000..51a7e20112 --- /dev/null +++ b/MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.inf @@ -0,0 +1,44 @@ +#/** @file +# Recovery for PEIM +# +# Copyright (c) 2006 - 2007, Intel Corporation. +# +# All rights reserved. This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +# +#**/ + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = PeiRecoveryLibNull + FILE_GUID = 41789FB9-02AC-4484-BD40-A3147D7EDA25 + MODULE_TYPE = PEIM + VERSION_STRING = 1.0 + LIBRARY_CLASS = RecoveryLib|PEIM + EDK_RELEASE_VERSION = 0x00020000 + EFI_SPECIFICATION_VERSION = 0x00020000 + + +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = IA32 X64 IPF EBC +# + +[Sources.common] + PeiRecoveryLibNull.c + +[Packages] + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + +[LibraryClasses] + BaseLib + + + \ No newline at end of file diff --git a/MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.c b/MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.c new file mode 100644 index 0000000000..5bf65f9377 --- /dev/null +++ b/MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.c @@ -0,0 +1,30 @@ +/**@file + S3 Library. This library class defines a set of methods related do S3 mode + +Copyright (c) 2006 - 2007 Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ +#include + +/** + Calling this function causes the system restore config from S3. + + @retval EFI_SUCESS Sucess to restore config from S3. + @retval Others Fail to restore config from S3. +**/ +EFI_STATUS +EFIAPI +S3RestoreConfig ( + VOID + ) +{ + return EFI_UNSUPPORTED; +} + diff --git a/MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.inf b/MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.inf new file mode 100644 index 0000000000..9b7166f396 --- /dev/null +++ b/MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.inf @@ -0,0 +1,43 @@ +#/** @file +# Graphics Library for UEFI drivers +# +# This library provides supports for basic graphic functions. +# Copyright (c) 2006 - 2007, Intel Corporation. +# +# All rights reserved. This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +# +#**/ + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = PeiS3LibNull + FILE_GUID = EFB7D3A8-DEB9-4bed-B6D6-3B09BEEB835A + MODULE_TYPE = PEIM + VERSION_STRING = 1.0 + LIBRARY_CLASS = S3Lib|PEIM + EDK_RELEASE_VERSION = 0x00020000 + EFI_SPECIFICATION_VERSION = 0x00020000 + + +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = IA32 X64 IPF EBC +# + +[Sources.common] + PeiS3LibNull.c + +[Packages] + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + +[LibraryClasses] + BaseLib + diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 7d9f5a871c..7b0f6607f5 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -32,7 +32,9 @@ PeCoffLoaderLib|Include/Library/PeCoffLoaderLib.h ResetSystemLib|Include/Library/ResetSystemLib.h UdpIoLib|Include/Library/UdpIoLib.h - + S3Lib|Include/Library/S3Lib.h + RecoveryLib|Include/Library/RecoveryLib.h + [Guids.common] gPcdDataBaseHobGuid = { 0xEA296D92, 0x0B69, 0x423C, { 0x8C, 0x28, 0x33, 0xB4, 0xE0, 0xA9, 0x12, 0x68 }} diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModulePkg.dsc index ee3bc9803a..e80fa4240f 100644 --- a/MdeModulePkg/MdeModulePkg.dsc +++ b/MdeModulePkg/MdeModulePkg.dsc @@ -43,6 +43,8 @@ UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf PeCoffLoaderLib|MdeModulePkg/Library/PeiDxePeCoffLoaderLib/PeCoffLoaderLib.inf CustomDecompressLib|MdePkg/Library/BaseCustomDecompressLibNull/BaseCustomDecompressLibNull.inf + S3Lib|MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.inf + RecoveryLib|MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.inf [LibraryClasses.IA32] IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf @@ -376,11 +378,14 @@ MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf - + MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf + MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.inf + MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.inf + MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf diff --git a/Nt32Pkg/Nt32Pkg.dsc b/Nt32Pkg/Nt32Pkg.dsc index 98ed118f8b..63d0b495b4 100644 --- a/Nt32Pkg/Nt32Pkg.dsc +++ b/Nt32Pkg/Nt32Pkg.dsc @@ -77,6 +77,8 @@ CustomDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf HiiLibFramework|IntelFrameworkPkg/Library/HiiLibFramework/HiiLib.inf + S3Lib|MdeModulePkg/Library/PeiS3LibNull/PeiS3LibNull.inf + RecoveryLib|MdeModulePkg/Library/PeiRecoveryLibNull/PeiRecoveryLibNull.inf [LibraryClasses.common.BASE] DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf -- 2.39.2