fixed to build under IPF.
Refactored some commands into FileHandleLib since they are used in many binaries.
Added .h for GUID that was missing.
Added PCD for initialization of shell apps and shell itself in shell library interaction.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8295 6f19259b-4bc3-4df7-8a09-765794883524
diff --git a/ShellPkg/ShellPkg.dec b/ShellPkg/ShellPkg.dec
index 922ad5e..65b62a0 100644
--- a/ShellPkg/ShellPkg.dec
+++ b/ShellPkg/ShellPkg.dec
@@ -20,7 +20,7 @@
   DEC_SPECIFICATION              = 0x00010005

   PACKAGE_NAME                   = ShellPkg

   PACKAGE_GUID                   = 9FB7587C-93F7-40a7-9C04-FD7BA94EE646

-  PACKAGE_VERSION                = 0.1

+  PACKAGE_VERSION                = 0.2

 

 

 [Includes.common]

@@ -32,8 +32,15 @@
   ##

   ShellLib|Include/Library/ShellLib.h

 

+  ##  @libraryclass  provides EFI_FILE_HANDLE services

+  ##                 used by Shell and ShellLib

+  ##

+  FileHandleLib|Include/Library/FileHandleLib.h

+

+

 [Guids.common]

   gEfiShellEnvironment2ExtGuid    = {0xd2c18636, 0x40e5, 0x4eb5, {0xa3, 0x1b, 0x36, 0x69, 0x5f, 0xd4, 0x2c, 0x87}}

+  gEfiShellPkgTokenSpaceGuid	  = {0x171e9188, 0x31d3, 0x40f5, {0xb1, 0x0c, 0x53, 0x9b, 0x2d, 0xb9, 0x40, 0xcd}}

 

 [Protocols.common]

   gEfiShellProtocolGuid           = {0x6302d008, 0x7f9b, 0x4f30, {0x87, 0xac, 0x60, 0xc9, 0xfe, 0xf5, 0xda, 0x4e}}

@@ -41,10 +48,7 @@
   gEfiShellEnvironment2Guid       = {0x47c7b221, 0xc42a, 0x11d2, {0x8e, 0x57, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b}}

   gEfiShellInterfaceGuid          = {0x47c7b223, 0xc42a, 0x11d2, {0x8e, 0x57, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b}}

 

-[PcdsFeatureFlag.common]

-

-[PcdsFixedAtBuild.common]

-

-[PcdsPatchableInModule.common]

-

-[PcdsDynamic.common]
\ No newline at end of file
+[PcdsFixedAtBuild,PcdsPatchableInModule,PcdsDynamic]

+  ## This flag is used to control initialization of the shell library

+  ## This should be FALSE for compiling the shell application itself onlty.

+  gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|TRUE|BOOLEAN|0x00000005
\ No newline at end of file