audk/MdePkg/Include/Library
Daryl McDaniel ae591c14b3 MdeModulePkg, MdePkg, NetworkPkg, OvmfPkg, PerformancePkg, ShellPkg: Library Migration.
Move libraries from ShellPkg into MdeModulePkg and MdePkg.

The following libraries are being migrated out of ShellPkg in order to make
their functionality more widely available.
  • PathLib:        Incorporate into MdePkg/Library/BaseLib
  • FileHandleLib:  MdePkg/Library/UefiFileHandleLib
  • BaseSortLib:    MdeModulePkg/Library/BaseSortLib
  • UefiSortLib:    MdeModulePkg/Library/UefiSortLib

Diffs showing file changes are in the attached file, LibMigration.patch.
A description of the changes follows:

  • Move ShellPkg/Include/Library/FileHandleLib.h to MdePkg/Include/Library/FileHandleLib.h
  • Move ShellPkg/Include/Library/SortLib.h to MdeModulePkg/Include/Library/SortLib.h
  • Move ShellPkg/Library/BaseSortLib to MdeModulePkg/Library/BaseSortLib
  • Move ShellPkg/Library/UefiSortLib to MdeModulePkg/Library/UefiSortLib
  • Move ShellPkg/Library/BasePathLib/BasePathLib.c to MdePkg/Library/BaseLib/FilePaths.c
  • Merge ShellPkg/Include/Library/PathLib.h into MdePkg/Include/Library/BaseLib.h
  • Delete  ShellPkg/Library/BasePathLib; Includes BasePathLib.c and BasePathLib.inf

  • NetworkPkg/NetworkPkg.dsc
  • PerformancePkg.dsc
  • OvmfPkg/OvmfPkgX64.dsc
  • OvmfPkg/OvmfPkgIa32X64.dsc
  • OvmfPkg/OvmfPkgIa32.dsc
    o Update SortLib and FileHandleLib library classes to point to the new library locations.
    o Remove PathLib library class and make sure that BaseLib is described.

  • MdeModulePkg/MdeModulePkg.dec
    o Add SortLib library class

  • MdePkg/MdePkg.dec
    o Add FileHandleLib library class
    o Add PcdUefiFileHandleLibPrintBufferSize PCD

  • MdePkg/Library/BaseLib/BaseLib.inf
    o Add FilePaths.c to [Sources]

  • MdePkg/Include/Library/BaseLib.h
    o Update file description to include "file path functions"

  • ShellPkg/ShellPkg.dsc
    o Change PACKAGE_GUID to { C1014BB7-4092-43D4-984F-0738EB424DBF }
    o Update PACKAGE_VERSION to 1.0
    o Update SortLib and FileHandleLib library classes to point to the new library locations.
    o Remove PathLib library class and make sure that BaseLib is described.
    o Remove ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf from [Components]

  • ShellPkg/ShellPkg.dec
    o Update PLATFORM_VERSION to 1.0
    o Remove declarations of the FileHandleLib, SortLib, and PathLib Library Classes
    o Update comment for the PcdShellPrintBufferSize PCD.

  • ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  • ShellPkg/Application/Shell/Shell.inf
    o Remove PathLib from [LibraryClasses]

  • ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
  • ShellPkg/Application/Shell/Shell.h
    o Remove #include <Library/PathLib.h>

  • ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
    o Add PathLib to [LibraryClasses]

  • ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
    o Remove #include <Library/PathLib.h>

  • ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.inf
    o Add MdeModulePkg/MdeModulePkg.dec to [Packages]

  • MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
  • MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
    o Replace ShellPkg.dec with MdeModulePkg.dec in [Packages]

  • MdeModulePkg/Library/UefiSortLib/UefiSortLib.c
    o Remove #include <ShellBase.h>
    o Define USL_FREE_NON_NULL() to replace SHELL_FREE_NON_NULL()

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16601 6f19259b-4bc3-4df7-8a09-765794883524
2015-01-13 01:04:07 +00:00
..
BaseLib.h MdeModulePkg, MdePkg, NetworkPkg, OvmfPkg, PerformancePkg, ShellPkg: Library Migration. 2015-01-13 01:04:07 +00:00
BaseMemoryLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
CacheMaintenanceLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
CpuLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
DebugLib.h Add new DEBUG_VERBOSE print error level. 2012-01-16 05:45:48 +00:00
DebugPrintErrorLevelLib.h Refine code to follow coding style. 2011-03-15 00:53:52 +00:00
DevicePathLib.h Add 4 APIs to DevicePathLib: ConvertDeviceNodeToText, ConvertDevicePathToText, ConvertTextToDeviceNode and ConvertTextToDevicePath. 2013-07-26 03:00:21 +00:00
DxeCoreEntryPoint.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
DxeServicesLib.h Correct function comments on DxeServicesLib GetFileBufferByFilePath API. 2012-04-17 09:42:44 +00:00
DxeServicesTableLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
ExtendedSalLib.h Add ESAL support libraries to MdePkg 2011-06-10 18:58:08 +00:00
ExtractGuidedSectionLib.h Add API to ExtractGuidedSectionLib.h to retrieve the set of registered handlers. 2010-11-04 05:51:32 +00:00
FileHandleLib.h MdeModulePkg, MdePkg, NetworkPkg, OvmfPkg, PerformancePkg, ShellPkg: Library Migration. 2015-01-13 01:04:07 +00:00
HobLib.h MdePkg: fix mixed dos and linux EOL format issue 2014-12-23 08:33:49 +00:00
IoLib.h Add ASSERT() for BitField operations to make sure the input value is valid. 2012-12-25 02:25:50 +00:00
MemoryAllocationLib.h Update MemoryAllocationLib.AllocateAlignedPages API comments for memory overflow ASSERT case. 2013-12-31 07:19:09 +00:00
OrderedCollectionLib.h MdePkg: introduce OrderedCollectionLib library class 2014-08-12 07:28:52 +00:00
PalLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
PcdLib.h MdePkg PcdLib: Except for SizeOfBuffer is greater than the maximum size supported, align the behavior of LibPcdSetPtr with LibPcdSetN to handle error status returned. 2014-01-07 09:28:33 +00:00
PciCf8Lib.h Add ASSERT() for BitField operations to make sure the input value is valid. 2012-12-25 02:25:50 +00:00
PciExpressLib.h Add ASSERT() for BitField operations to make sure the input value is valid. 2012-12-25 02:25:50 +00:00
PciLib.h Add ASSERT() for BitField operations to make sure the input value is valid. 2012-12-25 02:25:50 +00:00
PciSegmentLib.h Add ASSERT() for BitField operations to make sure the input value is valid. 2012-12-25 02:25:50 +00:00
PeCoffExtraActionLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
PeCoffGetEntryPointLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
PeCoffLib.h Enhance the error code info. 2012-09-11 10:53:37 +00:00
PeiCoreEntryPoint.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
PeiServicesLib.h 1. Enable use-cases in PEI using SecurityPPI co-equal to the use-cases in DXE using the Security Arch Protocol 2013-10-11 03:54:13 +00:00
PeiServicesTablePointerLib.h Add VOID MigratePeiServicesTablePointer() to fix'Deprecated declaration'. 2014-01-17 06:06:30 +00:00
PeimEntryPoint.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
PerformanceLib.h Add new extension PerformanceLib APIs to store ID info. 2012-04-24 08:42:24 +00:00
PostCodeLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
PrintLib.h Clarify PrintLib behavior on %d, %x, %l. 2013-07-29 07:58:57 +00:00
ReportStatusCodeLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
ResourcePublicationLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
S3BootScriptLib.h Add comment for S3BootScriptSaveMemPoll API, since it does not match PI specification. 2014-03-01 12:25:31 +00:00
S3IoLib.h Add ASSERT() for BitField operations to make sure the input value is valid. 2012-12-25 02:25:50 +00:00
S3PciLib.h Add ASSERT() for BitField operations to make sure the input value is valid. 2012-12-25 02:25:50 +00:00
S3SmbusLib.h MdePkg: Add S3 library interfaces and base implementations 2011-08-29 22:16:28 +00:00
S3StallLib.h MdePkg: Add S3 library interfaces and base implementations 2011-08-29 22:16:28 +00:00
SalLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
SerialPortLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
SmbusLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
SmmLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
SmmPeriodicSmiLib.h Update inappropriate comments. 2011-02-17 00:45:08 +00:00
SmmServicesTableLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
SynchronizationLib.h Clarify alignment of GetSpinLockProperties() is byte alignment. 2012-03-07 01:40:44 +00:00
TimerLib.h Add new API GetTimeInNanoSecond() to TimerLib to convert elapsed ticks to time in unit of nanoseconds. 2011-08-25 05:59:17 +00:00
UefiApplicationEntryPoint.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
UefiBootServicesTableLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
UefiDecompressLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
UefiDriverEntryPoint.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
UefiLib.h Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more info. Also replace old interface with new one. 2012-05-30 07:36:00 +00:00
UefiRuntimeLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
UefiRuntimeServicesTableLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
UefiScsiLib.h MdePkg/UefiScsiLib: Wrong function parameter comments in UefiScsiLib. It should be the number of transferred blocks rather than block size. 2014-04-30 03:38:05 +00:00
UefiUsbLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00