From nobody Sat May 4 12:44:08 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1526915374125429.2659735045107; Mon, 21 May 2018 08:09:34 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id ADF4A2097DD24; Mon, 21 May 2018 08:09:32 -0700 (PDT) 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 80330207E4E1C for ; Mon, 21 May 2018 08:09:30 -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 w4LF9Qpg017049; Mon, 21 May 2018 16:09:27 +0100 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; 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 From: AlexeiFedorov To: edk2-devel@lists.01.org Date: Mon, 21 May 2018 16:09:26 +0100 Message-Id: <1526915366-13028-1-git-send-email-Alexei.Fedorov@arm.com> X-Mailer: git-send-email 2.7.1.windows.1 Subject: [edk2] [PATCH] Platform/ARM: Fix FVP broken build with "-D ARM_FVP_RUN_NORFLASH" 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: , Cc: nd@arm.com, Stephanie.Hughes-Fitt@arm.com, Ard.Biesheuvel@linaro.org, Leif.Lindholm@linaro.org, Arvind Chauhan MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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=3D1 !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] Module type [PEIM] is not supported by library instance [MdeModulePkg\Library\DxeReportStatusCodeLib\DxeReportStatusCodeLib.inf] consumed by [n:\edk2\MdeModulePkg\Core\DxeIplPeim\DxeIpl.inf] and ../Platform/ARM/VExpressPkg/Include/Platform/RTSM/ArmPlatform.h:19:10: fatal error: VExpressMotherBoard.h: No such file or directory 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 and Platform/ARM/VExpressPkg/ArmVExpressPkg.dec in [Packages] section of ArmVExpressLibSec.inf Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Alexei Fedorov Reviewed-by: Leif Lindholm --- All the changes can be reviewed at: https://github.com/AlexeiFedorov/edk2-platforms/tree/237_fix_fvp_build_v1 Notes: v1: Add PeiReportStatusCodeLib in PEI_CORE and PEIM sections [Alexei] Add ArmVExpressPkg.dec in ArmVExpressLibSec.inf [Alexei] Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc = | 2 ++ Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLibSec.inf = | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc b/Platform/ARM/VE= xpressPkg/ArmVExpress.dsc.inc index de201b0c81d020e1e06ee320cf0f14f186723657..bb899b91c525ee821b9506cca75= 224f4bc41e3ae 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/PeiMemoryAlloc= ationLib.inf PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.= inf + ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiRepor= tStatusCodeLib.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHo= okStatusCodeLibNull.inf PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeC= offGetEntryPointLib.inf ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExt= ractGuidedSectionLib.inf @@ -179,6 +180,7 @@ [LibraryClasses.common.PEIM] MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAlloc= ationLib.inf PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.= inf + ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiRepor= tStatusCodeLib.inf OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHo= okStatusCodeLibNull.inf PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeC= offGetEntryPointLib.inf PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiRe= sourcePublicationLib.inf diff --git a/Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpres= sLibSec.inf b/Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpre= ssLibSec.inf index 2287756cf8c5f988ac1fe85485f242407ebffa67..ec29d99835401b65f45ff494df4= a0955a1618af1 100644 --- a/Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLibSec= .inf +++ b/Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLibSec= .inf @@ -1,5 +1,5 @@ #/* @file -# Copyright (c) 2011-2012, ARM Limited. All rights reserved. +# Copyright (c) 2011-2018, ARM Limited. All rights reserved. # # This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License @@ -22,6 +22,7 @@ [Defines] [Packages] MdePkg/MdePkg.dec MdeModulePkg/MdeModulePkg.dec + Platform/ARM/VExpressPkg/ArmVExpressPkg.dec EmbeddedPkg/EmbeddedPkg.dec ArmPkg/ArmPkg.dec ArmPlatformPkg/ArmPlatformPkg.dec --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel