X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FUefiLib%2FUefiLib.inf;h=01ed92092da2ea7f7df52e58257b505e9299f836;hb=9344f0921518309295da89c221d10cbead8531aa;hp=b38f2b77edaddbab8331658ef0d51c4d7a978b32;hpb=e386b444c88b01c5a14ca846b6ba10dcf5536e05;p=mirror_edk2.git diff --git a/MdePkg/Library/UefiLib/UefiLib.inf b/MdePkg/Library/UefiLib/UefiLib.inf index b38f2b77ed..01ed92092d 100644 --- a/MdePkg/Library/UefiLib/UefiLib.inf +++ b/MdePkg/Library/UefiLib/UefiLib.inf @@ -1,86 +1,48 @@ -#/** @file -# Component description file for the entry point to a EFIDXE Drivers +## @file +# Instance of UEFI Library. # -# Library to abstract Framework extensions that conflict with UEFI 2.0 Specification -# -# Help Port Framework/Tinao code that has conflicts with UEFI 2.0 by hiding the oldconflicts with library functions and supporting implementations of the old -# (EDK/EFI 1.10) and new (EDK II/UEFI 2.0) way. This module is a DXE driver as it contains DXE enum extensions for EFI event services. -# Copyright (c) 2007, Intel Corporation. +# The UEFI Library provides functions and macros that simplify the development of +# UEFI Drivers and UEFI Applications. These functions and macros help manage EFI +# events, build simple locks utilizing EFI Task Priority Levels (TPLs), install +# EFI Driver Model related protocols, manage Unicode string tables for UEFI Drivers, +# and print messages on the console output and standard error devices. # -# All rights reserved. This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at -# http://opensource.org/licenses/bsd-license.php -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
# +# SPDX-License-Identifier: BSD-2-Clause-Patent # -#**/ - -################################################################################ -# -# Defines Section - statements that will be processed to create a Makefile. # -################################################################################ +## + [Defines] INF_VERSION = 0x00010005 BASE_NAME = UefiLib + MODULE_UNI_FILE = UefiLib.uni FILE_GUID = 3a004ba5-efe0-4a61-9f1a-267a46ae5ba9 - MODULE_TYPE = DXE_DRIVER + MODULE_TYPE = UEFI_DRIVER VERSION_STRING = 1.0 - LIBRARY_CLASS = UefiLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER - EDK_RELEASE_VERSION = 0x00020000 - EFI_SPECIFICATION_VERSION = 0x00020000 - + LIBRARY_CLASS = UefiLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER SMM_CORE + CONSTRUCTOR = UefiLibConstructor -# -# The following information is for reference only and not required by the build tools. -# -# VALID_ARCHITECTURES = IA32 X64 IPF EBC -# -################################################################################ # -# Sources Section - list of files that are required for the build to succeed. +# VALID_ARCHITECTURES = IA32 X64 EBC # -################################################################################ -[Sources.common] +[Sources] UefiLibPrint.c UefiNotTiano.c + UefiDriverModel.c Console.c UefiLib.c - CommonHeader.h + UefiLibInternal.h + Acpi.c -################################################################################ -# -# Includes Section - list of Include locations that are required for -# this module. -# -################################################################################ - -[Includes] - $(WORKSPACE)/MdePkg\Include/Library - -################################################################################ -# -# Package Dependency Section - list of Package files that are required for -# this module. -# -################################################################################ - [Packages] MdePkg/MdePkg.dec -################################################################################ -# -# Library Class Section - list of Library Classes that are required for -# this module. -# -################################################################################ - [LibraryClasses] PrintLib PcdLib @@ -89,34 +51,38 @@ BaseMemoryLib BaseLib UefiBootServicesTableLib - - -################################################################################ -# -# Guid C Name Section - list of Guids that this module uses or produces. -# -################################################################################ + DevicePathLib + UefiRuntimeServicesTableLib [Guids] - gEfiFrameworkDevicePathGuid # ALWAYS_CONSUMED - gEfiEventReadyToBootGuid # ALWAYS_CONSUMED - gEfiEventLegacyBootGuid # ALWAYS_CONSUMED - + gEfiEventReadyToBootGuid ## SOMETIMES_CONSUMES ## Event + gEfiEventLegacyBootGuid ## SOMETIMES_CONSUMES ## Event + gEfiGlobalVariableGuid ## SOMETIMES_CONSUMES ## Variable + gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable + gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## SystemTable [Protocols] - gEfiDriverBindingProtocolGuid # ALWAYS_CONSUMED - gEfiComponentNameProtocolGuid # SOMETIMES_CONSUMED - gEfiDriverConfigurationProtocolGuid # SOMETIMES_CONSUMED - gEfiDriverDiagnosticsProtocolGuid # SOMETIMES_CONSUMED - -################################################################################ -# -# Pcd FIXED_AT_BUILD - list of PCDs that this module is coded for. -# -################################################################################ - -[PcdsFixedAtBuild.common] - PcdUefiLibMaxPrintBufferSize|gEfiMdePkgTokenSpaceGuid - PcdDriverDiagnosticsDisable|gEfiMdePkgTokenSpaceGuid - PcdComponentNameDisable|gEfiMdePkgTokenSpaceGuid + gEfiDriverBindingProtocolGuid ## SOMETIMES_PRODUCES + gEfiSimpleTextOutProtocolGuid ## SOMETIMES_CONSUMES + gEfiGraphicsOutputProtocolGuid ## SOMETIMES_CONSUMES + gEfiHiiFontProtocolGuid ## SOMETIMES_CONSUMES + gEfiSimpleFileSystemProtocolGuid ## SOMETIMES_CONSUMES + gEfiUgaDrawProtocolGuid | gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport ## SOMETIMES_CONSUMES # Consumes if gEfiGraphicsOutputProtocolGuid uninstalled + gEfiComponentNameProtocolGuid | NOT gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable ## SOMETIMES_PRODUCES # User chooses to produce it + gEfiComponentName2ProtocolGuid | NOT gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable ## SOMETIMES_PRODUCES # User chooses to produce it + gEfiDriverConfigurationProtocolGuid ## SOMETIMES_PRODUCES # User chooses to produce it + gEfiDriverConfiguration2ProtocolGuid ## SOMETIMES_PRODUCES # User chooses to produce it + gEfiDriverDiagnosticsProtocolGuid | NOT gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable ## SOMETIMES_PRODUCES # User chooses to produce it + gEfiDriverDiagnostics2ProtocolGuid| NOT gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable ## SOMETIMES_PRODUCES # User chooses to produce it + + +[Pcd] + gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize ## SOMETIMES_CONSUMES + +[FeaturePcd] + gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable ## CONSUMES + gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable ## CONSUMES + gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable ## CONSUMES + gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable ## CONSUMES + gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport ## CONSUMES