public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Liming Gao" <liming.gao@intel.com>
To: "Kuo, IanX" <ianx.kuo@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Lu, James" <james.lu@intel.com>,
	"Kumar, Chandana C" <chandana.c.kumar@intel.com>,
	"Prabhala, Varalakshmi A" <varalakshmi.a.prabhala@intel.com>,
	"Chaganty, Rangasai V" <rangasai.v.chaganty@intel.com>,
	"Chiu, Chasel" <chasel.chiu@intel.com>
Subject: Re: [edk2-platforms] [PATCH v7 1/6] Platform/Intel/MinPlatformPkg: Fix build error
Date: Tue, 21 Jul 2020 05:43:40 +0000	[thread overview]
Message-ID: <MWHPR11MB1630F5275775067D8CB2352980780@MWHPR11MB1630.namprd11.prod.outlook.com> (raw)
In-Reply-To: <e84eb8e7da9d364ea215980721913d6a66b83a4d.1595309109.git.ianx.kuo@intel.com>

Reviewed-by: Liming Gao <liming.gao@intel.com>

-----Original Message-----
From: Kuo, IanX <ianx.kuo@intel.com> 
Sent: 2020年7月21日 13:29
To: devel@edk2.groups.io
Cc: Lu, James <james.lu@intel.com>; Kumar, Chandana C <chandana.c.kumar@intel.com>; Prabhala, Varalakshmi A <varalakshmi.a.prabhala@intel.com>; Gao, Liming <liming.gao@intel.com>; Kuo, IanX <ianx.kuo@intel.com>; Chaganty, Rangasai V <rangasai.v.chaganty@intel.com>; Chiu, Chasel <chasel.chiu@intel.com>
Subject: [edk2-platforms] [PATCH v7 1/6] Platform/Intel/MinPlatformPkg: Fix build error

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

Change-Id: I0cd6ba4eb7231a3a84f080fdce85bbe74eb29eeb
Signed-off-by: IanX Kuo <ianx.kuo@intel.com>
Cc: Sai Chaganty <rangasai.v.chaganty@intel.com>
Cc: Chasel Chiu <chasel.chiu@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 aa256534..7eb29152 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 a1830d43..df1d780e 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.26.2.windows.1


  reply	other threads:[~2020-07-21  5:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-21  5:29 [edk2-platforms] [PATCH v7 0/6] Create a Library instance of ReportCpuHobLib IanX Kuo
2020-07-21  5:29 ` [edk2-platforms] [PATCH v7 1/6] Platform/Intel/MinPlatformPkg: Fix build error IanX Kuo
2020-07-21  5:43   ` Liming Gao [this message]
2020-07-21  5:29 ` [edk2-platforms] [PATCH v7 2/6] Platform/Intel/CometlakeOpenBoardPkg: Add ReportCpuHobLib IanX Kuo
2020-07-21  5:43   ` Liming Gao
2020-07-21  5:29 ` [edk2-platforms] [PATCH v7 3/6] Platform/Intel/KabylakeOpenBoardPkg: " IanX Kuo
2020-07-21  5:30 ` [edk2-platforms] [PATCH v7 4/6] Platform/Intel/SimicsOpenBoardPkg: " IanX Kuo
2020-07-21  5:30 ` [edk2-platforms] [PATCH v7 5/6] Platform/Intel/WhiskeylakeOpenBoardPkg: " IanX Kuo
2020-07-21  5:30 ` [edk2-platforms] [PATCH v7 6/6] Platform/Intel/MinPlatformPkg: " IanX Kuo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MWHPR11MB1630F5275775067D8CB2352980780@MWHPR11MB1630.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox