ae591c1 MdeModulePkg, MdePkg, NetworkPkg, OvmfPkg, PerformancePkg, ShellPkg: Library Migration.

29 files Authored by Daryl McDaniel 9 years ago, Committed by darylm503 9 years ago,
29 files changed. 128 lines added. 196 lines removed.
MdeModulePkg/Include/Library/SortLib.hShellPkg/Include/Library/SortLib.h
file renamed
+1 -2
MdeModulePkg/Library/BaseSortLib/BaseSortLib.cShellPkg/Library/BaseSortLib/BaseSortLib.c
file renamed
+1 -2
MdeModulePkg/Library/BaseSortLib/BaseSortLib.infShellPkg/Library/BaseSortLib/BaseSortLib.inf
file renamed
+2 -2
MdeModulePkg/Library/UefiSortLib/UefiSortLib.cShellPkg/Library/UefiSortLib/UefiSortLib.c
file renamed
+16 -10
MdeModulePkg/Library/UefiSortLib/UefiSortLib.infShellPkg/Library/UefiSortLib/UefiSortLib.inf
file renamed
+2 -2
MdeModulePkg/MdeModulePkg.dec
file modified
+3 -0
MdePkg/Include/Library/BaseLib.h
file modified
+47 -10
MdePkg/Include/Library/FileHandleLib.hShellPkg/Include/Library/FileHandleLib.h
file renamed
+1 -1
MdePkg/Library/BaseLib/BaseLib.inf
file modified
+1 -0
MdePkg/Library/BaseLib/FilePaths.cShellPkg/Library/BasePathLib/BasePathLib.c
file renamed
+11 -16
MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.cShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.c
file renamed
+2 -2
MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.infShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
file renamed
+6 -9
MdePkg/MdePkg.dec
file modified
+9 -1
NetworkPkg/NetworkPkg.dsc
file modified
+2 -2
OvmfPkg/OvmfPkgIa32.dsc
file modified
+3 -4
OvmfPkg/OvmfPkgIa32X64.dsc
file modified
+3 -4
OvmfPkg/OvmfPkgX64.dsc
file modified
+3 -4
PerformancePkg/PerformancePkg.dsc
file modified
+3 -3
ShellPkg/Application/Shell/Shell.h
file modified
+0 -1
ShellPkg/Application/Shell/Shell.inf
file modified
+1 -2
ShellPkg/Application/ShellSortTestApp/ShellSortTestApp.inf
file modified
+2 -1
ShellPkg/Include/Library/PathLib.h
file removed
-56
ShellPkg/Library/BasePathLib/BasePathLib.inf
file removed
-38
ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
file modified
+1 -2
ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
file modified
+0 -1
ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
file modified
+0 -1
ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
file modified
+2 -3
ShellPkg/ShellPkg.dec
file modified
+3 -12
ShellPkg/ShellPkg.dsc
file modified
+3 -5
    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
    
        
MdeModulePkg/Include/Library/SortLib.h ShellPkg/Include/Library/SortLib.h
file renamed
+1 -2
MdeModulePkg/Library/BaseSortLib/BaseSortLib.c ShellPkg/Library/BaseSortLib/BaseSortLib.c
file renamed
+1 -2
MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf ShellPkg/Library/BaseSortLib/BaseSortLib.inf
file renamed
+2 -2
MdeModulePkg/Library/UefiSortLib/UefiSortLib.c ShellPkg/Library/UefiSortLib/UefiSortLib.c
file renamed
+16 -10
MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf ShellPkg/Library/UefiSortLib/UefiSortLib.inf
file renamed
+2 -2
MdePkg/Include/Library/FileHandleLib.h ShellPkg/Include/Library/FileHandleLib.h
file renamed
+1 -1
MdePkg/Library/BaseLib/FilePaths.c ShellPkg/Library/BasePathLib/BasePathLib.c
file renamed
+11 -16
MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.c ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.c
file renamed
+2 -2
MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
file renamed
+6 -9
file modified
+9 -1
file modified
+2 -2
file modified
+3 -4
file modified
+3 -4
file modified
+3 -4
file modified
+3 -12
file modified
+3 -5