2021-03-22 03:44:13 +01:00
|
|
|
## @file
|
|
|
|
# Mde DSC include file for [LibraryClasses*] section of all Architectures.
|
|
|
|
#
|
|
|
|
# This file can be included to the [LibraryClasses*] section(s) of a platform DSC file
|
|
|
|
# by using "!include MdePkg/MdeLibs.dsc.inc" to specify the library instances
|
|
|
|
# of some EDKII basic/common library classes.
|
|
|
|
#
|
2024-05-10 04:41:57 +02:00
|
|
|
# Copyright (c) 2021 - 2024, Intel Corporation. All rights reserved.<BR>
|
2021-03-22 03:44:13 +01:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
[LibraryClasses]
|
2022-10-28 17:32:47 +02:00
|
|
|
ArmTrngLib|MdePkg/Library/BaseArmTrngLibNull/BaseArmTrngLibNull.inf
|
2021-03-22 03:44:13 +01:00
|
|
|
RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf
|
2022-03-28 17:12:08 +02:00
|
|
|
CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
|
2022-04-25 10:47:27 +02:00
|
|
|
SmmCpuRendezvousLib|MdePkg/Library/SmmCpuRendezvousLibNull/SmmCpuRendezvousLibNull.inf
|
2023-12-15 01:55:24 +01:00
|
|
|
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
2024-02-06 19:28:46 +01:00
|
|
|
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
|
2024-05-10 04:41:57 +02:00
|
|
|
MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
|
2024-07-18 10:30:45 +02:00
|
|
|
BaseOverflowLib|MdePkg/Library/BaseOverflowLib/BaseOverflowLib.inf
|
2023-03-30 16:13:58 +02:00
|
|
|
|
|
|
|
MemoryProfileLib|MdeModulePkg/Library/BaseMemoryProfileLibNull/BaseMemoryProfileLibNull.inf
|
2023-05-04 14:24:56 +02:00
|
|
|
CommonMemoryAllocationLib|MdeModulePkg/Library/CommonMemoryAllocationLib/CommonMemoryAllocationLib.inf
|
2023-12-18 09:01:58 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# For security and code size optimization reasons, the UefiImageLib design is
|
|
|
|
# complicated. To not expose FV-only UEFI image formats via, e.g., DxeCore to
|
|
|
|
# untrusted sources, UefiImageLib can be configured to support different UEFI
|
|
|
|
# image formats per source. While compilers generally manage to optimize the
|
|
|
|
# initial parsing steps, complex control flow can make them lose track of the
|
|
|
|
# UefiImageLib source property and thus conditionally call into code for UEFI
|
|
|
|
# image formats that are not required by the module at all (e.g., because it
|
|
|
|
# only ever deals with FV images).
|
|
|
|
#
|
|
|
|
# To have the code for unsupported UEFI image file formats removed,
|
|
|
|
# UefiImageLib comes in multiple flavours that support FV-only, non-FV-only,
|
|
|
|
# or all UEFI image formats. These flavours are supposed to be used by
|
|
|
|
# top-level modules that have a clear scope. As libraries may depend on
|
|
|
|
# UefiImageLib too, however, they should consume the general UefiImageLib with
|
|
|
|
# no clear flavour.
|
|
|
|
#
|
|
|
|
# If they consume libraries with UefiImageLib dependencies, modules must have
|
|
|
|
# their general UefiImageLib set to their corresponding flavour for correct
|
|
|
|
# linkage. In order to make this easier, there is a heuristic below, based on
|
|
|
|
# module types, to set the most likely instance of UefiImageLib. In rare
|
|
|
|
# cases, manual overriding in the platform DSC may be necessary.
|
|
|
|
#
|
|
|
|
UefiImageOnlyNonFvLib|MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyNonFvLib.inf
|
|
|
|
UefiImageOnlyFvLib|MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyFvLib.inf
|
|
|
|
UefiImageAllLib|MdePkg/Library/BaseUefiImageLib/BaseUefiImageAllLib.inf
|
2024-07-01 11:18:06 +02:00
|
|
|
UeImageLib|MdePkg/Library/BaseUeImageLib/BaseUeImageLib.inf
|
2023-12-18 09:01:58 +01:00
|
|
|
|
|
|
|
[LibraryClasses.common.USER_DEFINED, LibraryClasses.common.SEC, LibraryClasses.common.PEI_CORE, LibraryClasses.common.PEIM, LibraryClasses.common.SMM_CORE, LibraryClasses.common.MM_CORE_STANDALONE, LibraryClasses.common.DXE_SMM_DRIVER, LibraryClasses.common.MM_STANDALONE]
|
|
|
|
UefiImageLib|MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyFvLib.inf
|
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_CORE, LibraryClasses.common.DXE_DRIVER, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
|
|
|
|
UefiImageLib|MdePkg/Library/BaseUefiImageLib/BaseUefiImageAllLib.inf
|