From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.128223.1671093297110239535 for ; Thu, 15 Dec 2022 00:34:57 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pierre.gondois@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0C5FD1063; Thu, 15 Dec 2022 00:35:37 -0800 (PST) Received: from cam-smtp0.cambridge.arm.com (pierre123.nice.arm.com [10.34.100.128]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8F8B63F5A1; Thu, 15 Dec 2022 00:34:55 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Thomas Abraham , Sami Mujawar Subject: [PATCH v2 1/1] Platform/Sgi: Use MmUnblockMemoryLib when SECURE_BOOT_ENABLE Date: Thu, 15 Dec 2022 09:34:48 +0100 Message-Id: <20221215083448.1824815-1-Pierre.Gondois@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Pierre Gondois Building the RdV1 platform fails when only providing the '-D SECURE_BOOT_ENABLE' flag due to MmUnblockMemoryLib missing. There is only one MmUnblockMemoryLib implementation used, so unconditionally use this implementation. Signed-off-by: Pierre Gondois --- Notes: v2: - Instead of defining the library when SECURE_BOOT_ENABLE is defined= , unconditionally include the library. [Ard] Platform/ARM/SgiPkg/SgiPlatform.dsc.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc b/Platform/ARM/SgiPk= g/SgiPlatform.dsc.inc index 81764368a0b7..a21faa249b07 100644 --- a/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc +++ b/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc @@ -38,9 +38,7 @@ [LibraryClasses.common] HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf ResetSystemLib|ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciReset= SystemLib.inf TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf -!if $(SECURE_BOOT_ENABLE) =3D=3D TRUE MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLi= bNull.inf -!endif =20 # Virtio Support VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf --=20 2.25.1