For libraries that have multiple module types support, just define a [Depex] section for specified module types that are permitted to have a [Depex] section.

Signed-off-by: lzeng14
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12052 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lzeng14 2011-07-27 08:54:57 +00:00
parent 05c82e51e1
commit 3397c6f590
18 changed files with 36 additions and 36 deletions

View File

@ -3,7 +3,7 @@
#
# I/O Library implementation that uses the CPU I/O Protocol for I/O
# and MMIO operations.
# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -48,5 +48,5 @@
[Protocols]
gEfiCpuIoProtocolGuid # PROTOCOL ALWAYS_CONSUMED
[Depex]
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]
gEfiCpuIoProtocolGuid

View File

@ -3,7 +3,7 @@
#
# This module provides DPC service by consuming EFI DPC Protocol.
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
# 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
@ -43,5 +43,5 @@
[Protocols]
gEfiDpcProtocolGuid # PROTOCOL ALWAYS_CONSUMED
[Depex]
gEfiDpcProtocolGuid
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]
gEfiDpcProtocolGuid

View File

@ -2,7 +2,7 @@
# Library instance that implements Print Library class based on protocol
# gEfiPrint2ProtocolGuid.
#
# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -47,5 +47,5 @@
[Protocols]
gEfiPrint2ProtocolGuid ## CONSUMES
[Depex]
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]
gEfiPrint2ProtocolGuid

View File

@ -57,5 +57,5 @@
[Pcd]
gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask
[Depex]
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER]
gEfiSmmCommunicationProtocolGuid

View File

@ -40,5 +40,5 @@
[Protocols]
gEfiExtendedSalBootServiceProtocolGuid # PROTOCOL ALWAYS_CONSUMED
[Depex]
[Depex.common.DXE_DRIVER]
gEfiExtendedSalBootServiceProtocolGuid

View File

@ -35,5 +35,5 @@
[LibraryClasses]
ExtendedSalLib
[Depex]
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]
gEfiExtendedSalPalServicesProtocolGuid

View File

@ -13,7 +13,7 @@
# This library instance uses the PCD_PROTOCOL to handle dynamic PCD request and use
# EFI_PCD_PROTOCOL to handle dynamicEx type PCD.
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -54,7 +54,7 @@
[Protocols]
gPcdProtocolGuid ## CONSUMES
gEfiPcdProtocolGuid ## CONSUMES
[Depex]
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]
gEfiPcdProtocolGuid

View File

@ -1,7 +1,7 @@
## @file
# SMBUS Library that layers on top of the SMBUS Protocol.
#
# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -45,5 +45,5 @@
[Protocols]
gEfiSmbusHcProtocolGuid ## CONSUMES
[Depex]
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]
gEfiSmbusHcProtocolGuid

View File

@ -4,7 +4,7 @@
# I/O Library implementation that uses the CPU I/O PPI for I/O
# and MMIO operations.
#
# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -42,5 +42,5 @@
BaseLib
DebugLib
[Depex]
[Depex.common.PEIM]
gEfiPeiCpuIoPpiInstalledGuid

View File

@ -15,7 +15,7 @@
#
# PCD Library that uses the PCD PPI to access Dynamic and DynamicEx PCD entries
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -58,6 +58,6 @@
gPcdPpiGuid ## CONSUMES
gEfiPeiPcdPpiGuid ## CONSUMES
[depex]
[Depex.common.PEIM]
gEfiPeiPcdPpiGuid

View File

@ -7,7 +7,7 @@
# the first PPI found, so this library instance should only be used platforms
# with a single PCI segment.
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -50,5 +50,5 @@
[Ppis]
gEfiPciCfg2PpiGuid ## CONSUMES
[Depex]
[Depex.common.PEIM]
gEfiPciCfg2PpiGuid

View File

@ -6,7 +6,7 @@
# EFI_PEI_PCI CFG2 PPIs are typically produced by a chipset specific PEIM.
# This library instance should only be used platforms with multiple PCI segments.
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -47,6 +47,6 @@
[Ppis]
gEfiPciCfg2PpiGuid ## CONSUMES
[Depex]
[Depex.common.PEIM]
gEfiPciCfg2PpiGuid

View File

@ -1,7 +1,7 @@
## @file
# SMBUS library that layers on top of the SMBUS PPI.
# SMBUS library that layers on top of the SMBUS2 PPI.
#
# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -44,5 +44,5 @@
[Ppis]
gEfiPeiSmbus2PpiGuid ## CONSUMES
[Depex]
[Depex.common.PEIM]
gEfiPeiSmbus2PpiGuid

View File

@ -3,7 +3,7 @@
#
# I/O Library implementation that uses the CPU I/O Protocol for I/O
# and MMIO operations.
# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -46,5 +46,5 @@
[Protocols]
gEfiSmmCpuIo2ProtocolGuid ## CONSUMES
[Depex]
[Depex.common.DXE_SMM_DRIVER]
gEfiSmmCpuIo2ProtocolGuid

View File

@ -7,7 +7,7 @@
# This library binds to the first PCI Root Bridge I/O Protocol in the platform. As a result,
# it should only be used on platforms that contain a single PCI root bridge.
#
# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -49,5 +49,5 @@
[Protocols]
gEfiSmmPciRootBridgeIoProtocolGuid ## CONSUMES
[Depex]
[Depex.common.DXE_SMM_DRIVER]
gEfiSmmPciRootBridgeIoProtocolGuid

View File

@ -4,7 +4,7 @@
# Device Path Library that layers on top of the UEFI 2.0 Device Path Protocol.
# This library is not available for EFI 1.10 modules.
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -50,5 +50,5 @@
gEfiDevicePathProtocolGuid ## CONSUMES
gEfiDevicePathUtilitiesProtocolGuid ## CONSUMES
[Depex]
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]
gEfiDevicePathUtilitiesProtocolGuid

View File

@ -7,7 +7,7 @@
# This library binds to the first PCI Root Bridge I/O Protocol in the platform. As a result,
# it should only be used on platforms that contain a single PCI root bridge.
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -51,5 +51,5 @@
[Protocols]
gEfiPciRootBridgeIoProtocolGuid ## CONSUMES
[Depex]
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]
gEfiPciRootBridgeIoProtocolGuid

View File

@ -7,7 +7,7 @@
# This library binds to all of the PCI Root Bridge I/O Protocols in the platform and handles
# the translation from a PCI segment number into a specific PCI Root Bridge I/O Protocol.
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@ -54,5 +54,5 @@
[Protocols]
gEfiPciRootBridgeIoProtocolGuid ## CONSUMES
[Depex]
[Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]
gEfiPciRootBridgeIoProtocolGuid