]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: UefiShellLib: drop wrong PathLib library class dependency
authorLaszlo Ersek <lersek@redhat.com>
Wed, 14 Jan 2015 16:25:48 +0000 (16:25 +0000)
committerlersek <lersek@Edk2>
Wed, 14 Jan 2015 16:25:48 +0000 (16:25 +0000)
SVN r16601 ("MdeModulePkg, MdePkg, NetworkPkg, OvmfPkg, PerformancePkg,
ShellPkg: Library Migration.") incorporated ShellPkg/Library/BasePathLib
into MdePkg/Library/BaseLib. BasePathLib had been the only instance of
library class PathLib.

Even so, SVN r16606 ("ShellPkg: allow creating of files to create required
directory path") added a PathLib dependency to
"ShellPkg/Library/UefiShellLib/UefiShellLib.inf".

This breaks edk2 platforms that build the "new" UEFI shell from source.
Undo the wrong dependency.

Similarly, update the <Library/PathLib.h> #include directive to
<Library/BaseLib.h> (example function prototype: PathRemoveLastItem()).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16609 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellLib/UefiShellLib.c
ShellPkg/Library/UefiShellLib/UefiShellLib.inf

index 844f17abc622b3c7220b3f6707e0fc762d8857d6..da4b46616ffc838239c110f8d63197f343180b31 100644 (file)
@@ -15,7 +15,7 @@
 #include "UefiShellLib.h"\r
 #include <ShellBase.h>\r
 #include <Library/SortLib.h>\r
-#include <Library/PathLib.h>\r
+#include <Library/BaseLib.h>\r
 \r
 #define FIND_XXXXX_FILE_BUFFER_SIZE (SIZE_OF_EFI_FILE_INFO + MAX_FILE_NAME_LEN)\r
 \r
index da06c34884498ee143a99070b62ca3a56d457298..8eedfce8b6d5afc8a948cb9e19c7535f1b6b9549 100644 (file)
@@ -48,7 +48,6 @@
   UefiLib\r
   HiiLib\r
   SortLib\r
-  PathLib\r
 \r
 [Protocols]\r
   gEfiSimpleFileSystemProtocolGuid              # ALWAYS_CONSUMED\r