ShellPkg: Enable Runtime DXE drivers to make use of Shell libraries with the expectation that the driver is responsible for ensuring that they are only called when boot services are present. Also adds a ShellCommandLib Depex for gEfiUnicodeCollation2ProtocolGuid to fix constructor crash when used by drivers.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eugene Cohen eugene@hp.com reviewed-by: jaben carsey jaben.carsey@intel.com git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13380 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
FILE_GUID = 5C12F31F-EBAC-466e-A400-FCA8C9EA3A05
|
||||
MODULE_TYPE = UEFI_DRIVER
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = ShellCommandLib|UEFI_APPLICATION UEFI_DRIVER
|
||||
LIBRARY_CLASS = ShellCommandLib|UEFI_APPLICATION UEFI_DRIVER DXE_RUNTIME_DRIVER
|
||||
CONSTRUCTOR = ShellCommandLibConstructor
|
||||
DESTRUCTOR = ShellCommandLibDestructor
|
||||
|
||||
@ -46,6 +46,7 @@
|
||||
UefiBootServicesTableLib
|
||||
ShellLib
|
||||
HiiLib
|
||||
HandleParsingLib
|
||||
|
||||
[Protocols]
|
||||
gEfiUnicodeCollation2ProtocolGuid # ALWAYS_CONSUMED
|
||||
@ -59,3 +60,6 @@
|
||||
[Pcd.common]
|
||||
gEfiShellPkgTokenSpaceGuid.PcdShellSupportLevel ## ALWAYS_CONSUMED
|
||||
gEfiShellPkgTokenSpaceGuid.PcdShellMapNameLength ## ALWAYS_CONSUMED
|
||||
|
||||
[Depex]
|
||||
gEfiUnicodeCollation2ProtocolGuid
|
||||
|
Reference in New Issue
Block a user