From 7f6a6a95ea11f520cb1ee61f3a651edd125fc2ae Mon Sep 17 00:00:00 2001 From: "levi.yun" Date: Fri, 18 Oct 2024 14:42:40 +0100 Subject: [PATCH] StandaloneMm/MmRpmb: fix build failure for some libraries commit 8bc44608b8ea ("MdeModulePkg: Add ImagePropertiesRecordLib") makes build failure on StandaloneMm. commit f8d9a0a ("Update to New StackCheckLib") replace BaseStackCheckLib to StackCheckLibNull. To fix build failure, 1. add ImagePropertiesRecordLib and related libraries, 2. replace StackCheckLib to StackCheckLibNull. Signed-off-by: Levi.Yun --- .../PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc b/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc index a5217bf4ac..ef1dc1b9f2 100644 --- a/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc +++ b/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc @@ -1,7 +1,8 @@ # -# Copyright (c) 2018, ARM Limited. All rights reserved. +# Copyright (c) 2018-2024, Arm Limited. All rights reserved. # Copyright (c) 2020, Linaro Ltd. All rights reserved. # + # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -44,7 +45,6 @@ HobPrintLib|MdeModulePkg/Library/HobPrintLib/HobPrintLib.inf ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf - NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf @@ -62,12 +62,16 @@ StandaloneMmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLibNull/BaseCacheMaintenanceLibNull.inf + ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf + PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf PeCoffExtraActionLib|StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf + NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf + [LibraryClasses.common.MM_STANDALONE] HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf