1) Remove dependency on the UEFI Boot Services Table Library so the gBS, gST, and gImageHandle symbols will not be automatically linked into an SMM Driver that uses this library.

2) Remove redundant include of <PiDxe.h>
3) Clean up constructor to use InSmm() library function instead of duplicating logic.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10000 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney
2010-02-14 05:49:44 +00:00
parent 112af4265f
commit 53b85bcbf0
2 changed files with 18 additions and 29 deletions

View File

@@ -1,7 +1,7 @@
#/** @file
# SMM Services Table Library.
#
# Copyright (c) 2009, Intel Corporation.
# Copyright (c) 2009 - 2010, Intel Corporation.
#
# All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -20,28 +20,24 @@
MODULE_TYPE = DXE_SMM_DRIVER
VERSION_STRING = 1.0
LIBRARY_CLASS = SmmServicesTableLib|SMM_CORE DXE_SMM_DRIVER
EDK_RELEASE_VERSION = 0x00020000
EFI_SPECIFICATION_VERSION = 0x00020000
PI_SPECIFICATION_VERSION = 0x0001000A
CONSTRUCTOR = SmmServicesTableLibConstructor
#
# VALID_ARCHITECTURES = IA32 X64
#
[Sources.common]
[Sources]
SmmServicesTableLib.c
[Packages]
MdePkg/MdePkg.dec
[LibraryClasses]
UefiBootServicesTableLib
DebugLib
[Protocols]
gEfiSmmBase2ProtocolGuid # PROTOCOL ALWAYS_CONSUMED
[Depex.common.DXE_DRIVER]
[Depex]
gEfiSmmBase2ProtocolGuid