From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.96.140; helo=cam-smtp0.cambridge.arm.com; envelope-from=alexei.fedorov@arm.com; receiver=edk2-devel@lists.01.org Received: from cam-smtp0.cambridge.arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 433E12063E310 for ; Thu, 3 May 2018 02:24:25 -0700 (PDT) Received: from E107992.Emea.Arm.com (e107992.emea.arm.com [10.1.211.7]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id w439OLlK025369; Thu, 3 May 2018 10:24:21 +0100 From: Alexei Fedorov To: edk2-devel@lists.01.org Cc: Arvind Chauhan , Daniil Egranov , Thomas Panakamattam Abraham , Ard.Biesheuvel@linaro.org, Leif.Lindholm@linaro.org, Matteo.Carlini@arm.com, Stephanie.Hughes-Fitt@arm.com, nd@arm.com, Thomas.Abraham@arm.com, Evan.Lloyd@arm.com, Sami.Mujawar@arm.com Date: Thu, 3 May 2018 10:24:21 +0100 Message-Id: <1525339461-12432-1-git-send-email-alexei.fedorov@arm.com> X-Mailer: git-send-email 2.7.1.windows.1 Subject: [PATCH edk2-platforms v1] Platform/ARM: Add PeiReportStatusCodeLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2018 09:24:26 -0000 From: Alexei Fedorov UEFI build fails for ArmVExpress-FVP-AArch64 when using "-D ARM_FVP_RUN_NORFLASH" build option, which prevents EDK2_SKIP_PEICORE macro from being defined in ArmVExpress-FVP-AArch64.dsc: !ifndef ARM_FVP_RUN_NORFLASH DEFINE EDK2_SKIP_PEICORE=1 !endif When EDK2_SKIP_PEICORE macro is not defined, build fails with errors 1001: Module type [PEI_CORE] is not supported by library instance [MdeModulePkg\Library\DxeReportStatusCodeLib\DxeReportStatusCodeLib.inf] consumed by [n:\edk2\MdeModulePkg\Core\Pei\PeiMain.inf] and Module type [PEIM] is not supported by library instance [MdeModulePkg\Library\DxeReportStatusCodeLib\DxeReportStatusCodeLib.inf] consumed by [n:\edk2\MdeModulePkg\Core\DxeIplPeim\DxeIpl.inf] This patch fixes the above build errors by adding MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf in [LibraryClasses.common.PEI_CORE] and [LibraryClasses.common.PEIM] sections of ArmVExpress.dsc.inc. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Alexei Fedorov Reviewed-by: Evan Lloyd --- All the changes can be reviewed at: https://github.com/AlexeiFedorov/edk2-platforms/tree/237_add_peireportstatuscodelib_v1 Notes: v1: - Add PeiReportStatusCodeLib in PEI_CORE and PEIM sections [Alexei] Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc index de201b0c81d020e1e06ee320cf0f14f186723657..bb899b91c525ee821b9506cca75224f4bc41e3ae 100644 --- a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc +++ b/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc @@ -166,6 +166,7 @@ [LibraryClasses.common.PEI_CORE] MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf + ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf @@ -179,6 +180,7 @@ [LibraryClasses.common.PEIM] MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf + ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'