From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.12895.1595309361730213608 for ; Mon, 20 Jul 2020 22:29:21 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: ianx.kuo@intel.com) IronPort-SDR: zJ3pkHeBsNYYnFrj/pcBzlGksynxTUQkCH4/5WvKF6+BEX4a2lonV3gW0yWHeRDqGyy3VGP71b 18aS64eZPkTw== X-IronPort-AV: E=McAfee;i="6000,8403,9688"; a="168205452" X-IronPort-AV: E=Sophos;i="5.75,377,1589266800"; d="scan'208";a="168205452" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2020 22:29:21 -0700 IronPort-SDR: yGr/aH2Z0/qV5/f+vqELBrQv1GuLfQwnkyjcqH/+BCq7TLTGDbk8RLmNjrTE1uRsGfl1hivbGf 2hfjUS6aV/Yg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,377,1589266800"; d="scan'208";a="301497229" Received: from ikuox-mobl1.gar.corp.intel.com ([10.5.244.14]) by orsmga002.jf.intel.com with ESMTP; 20 Jul 2020 22:29:19 -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 v7 1/6] Platform/Intel/MinPlatformPkg: Fix build error Date: Tue, 21 Jul 2020 13:29:17 +0800 Message-Id: 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 Change-Id: I0cd6ba4eb7231a3a84f080fdce85bbe74eb29eeb 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 aa256534..7eb29152 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 a1830d43..df1d780e 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.26.2.windows.1