From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web10.14231.1595316564409660310 for ; Tue, 21 Jul 2020 00:29:24 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: ianx.kuo@intel.com) IronPort-SDR: XfH4eDWnAsT1M5cQShFVe1mYX1sUIpPc657gTFC9Qi5fPcecbKlPoSXcElgL1ltJggCkdYzZ26 84ANEyJgbF4w== X-IronPort-AV: E=McAfee;i="6000,8403,9688"; a="150066434" X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="150066434" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2020 00:29:23 -0700 IronPort-SDR: aax9ODHe1Djueh6l4NzADjVepCSDyncpL1UTDqkmzPWsWKmLHIEHqUpOXVDFuXCoJvrBUAPHBB 9EltYqG5V4xg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,378,1589266800"; d="scan'208";a="362275350" Received: from ikuox-mobl1.gar.corp.intel.com ([10.5.244.14]) by orsmga001.jf.intel.com with ESMTP; 21 Jul 2020 00:29:20 -0700 From: "IanX Kuo" To: devel@edk2.groups.io Cc: james.lu@intel.com, chandana.c.kumar@intel.com, varalakshmi.a.prabhala@intel.com, liming.gao@intel.com, IanX Kuo , Sai Chaganty , Chasel Chiu Subject: [edk2-platforms] [PATCH v8 1/6] Platform/Intel/MinPlatformPkg: Fix build error Date: Tue, 21 Jul 2020 15:29:19 +0800 Message-Id: <6572feadeac4247cb1e6c0f679358000760c9ba2.1595315589.git.ianx.kuo@intel.com> X-Mailer: git-send-email 2.26.2.windows.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=3D2674 Signed-off-by: IanX Kuo Cc: Sai Chaganty Cc: Chasel Chiu --- .../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/ReportCpuHo= bLib/ReportCpuHobLib.c b/Platform/Intel/MinPlatformPkg/PlatformInit/Library= /ReportCpuHobLib/ReportCpuHobLib.c index aa2565343c..7eb29152f8 100644 --- a/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/Re= portCpuHobLib.c +++ b/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/Re= portCpuHobLib.c @@ -6,7 +6,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent =0D **/=0D =0D -#include =0D +#include =0D +#include =0D #include =0D =0D VOID=0D diff --git a/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHo= bLib/ReportCpuHobLib.inf b/Platform/Intel/MinPlatformPkg/PlatformInit/Libra= ry/ReportCpuHobLib/ReportCpuHobLib.inf index a1830d4320..df1d780ece 100644 --- a/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/Re= portCpuHobLib.inf +++ b/Platform/Intel/MinPlatformPkg/PlatformInit/Library/ReportCpuHobLib/Re= portCpuHobLib.inf @@ -12,7 +12,7 @@ BASE_NAME =3D ReportCpuHobLib=0D FILE_GUID =3D F19AA754-CE24-448D-B755-1F939B00C25D= =0D VERSION_STRING =3D 1.0=0D - MODULE_TYPE =3D BASE=0D + MODULE_TYPE =3D PEIM=0D LIBRARY_CLASS =3D ReportCpuHobLib=0D =0D [LibraryClasses]=0D --=20 2.27.0.windows.1