1. Fix ReportCpuHobLib build error 2. Change MODULE from BASE to PEIM Create a Library instance of ReportCpuHobLib from PlatformInitPei driver. PA bits reported can be overridden by Library instance in Platform.
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2674 Signed-off-by: IanX Kuo <ianx....@intel.com> Cc: Sai Chaganty <rangasai.v.chaga...@intel.com> Cc: Chasel Chiu <chasel.c...@intel.com> --- .../PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.c | 3 ++- .../PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.inf | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.c b/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.c index aa2565343c..7eb29152f8 100644 --- a/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.c +++ b/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.c @@ -6,7 +6,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent **/ -#include <Base.h> +#include <PiPei.h> +#include <Library/BaseLib.h> #include <Library/HobLib.h> VOID diff --git a/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.inf b/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.inf index a1830d4320..df1d780ece 100644 --- a/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.inf +++ b/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.inf @@ -12,7 +12,7 @@ BASE_NAME = ReportCpuHobLib FILE_GUID = F19AA754-CE24-448D-B755-1F939B00C25D VERSION_STRING = 1.0 - MODULE_TYPE = BASE + MODULE_TYPE = PEIM LIBRARY_CLASS = ReportCpuHobLib [LibraryClasses] -- 2.27.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#62963): https://edk2.groups.io/g/devel/message/62963 Mute This Topic: https://groups.io/mt/75699341/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-