]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: use UEFI_APPLICATION module type for Shell components
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 25 Aug 2015 14:54:36 +0000 (14:54 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Tue, 25 Aug 2015 14:54:36 +0000 (14:54 +0000)
Some of the libraries under ShellPkg/Library/ are only intended to be
loaded into the Shell by means of a NULL LibraryClass resolution, and
serve no other purpose. Since the Shell itself is a UEFI_APPLICATION, it
makes sense to set the module type of those libraries to UEFI_APPLICATION
as well.

This allows us to use different compiler flags for the Shell application
itself but also for the majority of its constituent parts that are built
separately via these libraries.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18310 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.inf

index d8451c3976524f0e7e044c9561570469553b29a4..55371eb3719460d8fc9b546320bbc8faa25a20a7 100644 (file)
@@ -16,7 +16,7 @@
   INF_VERSION                    = 0x00010006\r
   BASE_NAME                      = UefiShellDebug1CommandsLib\r
   FILE_GUID                      = 90330D51-A99B-4cc8-A2EB-AE22542A3F45\r
-  MODULE_TYPE                    = UEFI_DRIVER\r
+  MODULE_TYPE                    = UEFI_APPLICATION\r
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = NULL|UEFI_APPLICATION UEFI_DRIVER\r
   CONSTRUCTOR                    = UefiShellDebug1CommandsLibConstructor\r
index a813b3b614f9091b61b315ce6ad9af5daf761a04..f2a2e4c581b0f14a744d5304f32fa2efde43beba 100644 (file)
@@ -16,7 +16,7 @@
   INF_VERSION                    = 0x00010006\r
   BASE_NAME                      = UefiShellDriver1CommandsLib\r
   FILE_GUID                      = 313D3674-3ED4-48fd-BF97-7DB35D4190D1\r
-  MODULE_TYPE                    = UEFI_DRIVER\r
+  MODULE_TYPE                    = UEFI_APPLICATION\r
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = NULL|UEFI_APPLICATION UEFI_DRIVER\r
   CONSTRUCTOR                    = UefiShellDriver1CommandsLibConstructor\r
index d21ad41ca9f38d79c36acb2c4d4f2f1b62d494d0..4d3713b46092236306e61f3e5b6be60927cb26f6 100644 (file)
@@ -16,7 +16,7 @@
   INF_VERSION                    = 0x00010006\r
   BASE_NAME                      = UefiShellLevel1CommandsLib\r
   FILE_GUID                      = 50cb6037-1102-47af-b2dd-9944b6eb1abe\r
-  MODULE_TYPE                    = UEFI_DRIVER\r
+  MODULE_TYPE                    = UEFI_APPLICATION\r
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = NULL|UEFI_APPLICATION UEFI_DRIVER\r
   CONSTRUCTOR                    = ShellLevel1CommandsLibConstructor\r
index 324d210d31ca6da895427382b1a153a8b4db5136..76540fb3a3645282e838c1e89ccde513e0c094f6 100644 (file)
@@ -17,7 +17,7 @@
   INF_VERSION                    = 0x00010006\r
   BASE_NAME                      = UefiShellLevel2CommandsLib\r
   FILE_GUID                      = CBF3931C-A2DF-40e5-B77E-CCA9555E9755\r
-  MODULE_TYPE                    = UEFI_DRIVER\r
+  MODULE_TYPE                    = UEFI_APPLICATION\r
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = NULL|UEFI_APPLICATION UEFI_DRIVER\r
   CONSTRUCTOR                    = ShellLevel2CommandsLibConstructor\r
index 7cc49605ee8674281e366a658bec982ceda7f81f..a13cd9babf5576962a160a1fc454674aa8ae5025 100644 (file)
@@ -19,7 +19,7 @@
   INF_VERSION                    = 0x00010006\r
   BASE_NAME                      = UefiShellLevel3CommandsLib\r
   FILE_GUID                      = 71374B42-85D7-4753-AD17-AA84C3A0EB93\r
-  MODULE_TYPE                    = UEFI_DRIVER\r
+  MODULE_TYPE                    = UEFI_APPLICATION\r
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = NULL|UEFI_APPLICATION UEFI_DRIVER\r
   CONSTRUCTOR                    = ShellLevel3CommandsLibConstructor\r
index 6dfbbe52b2799cd77985d3fbee02ffcb3b110010..92d47d114f6bc59ccd69b51ad435a9afe5423930 100644 (file)
@@ -17,7 +17,7 @@
   INF_VERSION                    = 0x00010006\r
   BASE_NAME                      = UefiShellNetwork1CommandsLib\r
   FILE_GUID                      = 9A929F7E-3861-45ce-87AB-7371219AE255\r
-  MODULE_TYPE                    = UEFI_DRIVER\r
+  MODULE_TYPE                    = UEFI_APPLICATION\r
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = NULL|UEFI_APPLICATION UEFI_DRIVER\r
   CONSTRUCTOR                    = ShellNetwork1CommandsLibConstructor\r
index 43b367d388e9c4ad410fe88c6e14449ba9c8f24a..96db25892078ea9c1bcb16eaab2b9e482ae475e6 100644 (file)
@@ -18,7 +18,7 @@
   INF_VERSION                    = 0x00010006\r
   BASE_NAME                      = UefiShellTftpCommandLib\r
   FILE_GUID                      = D2B61A25-9835-4E5D-906A-15615E1FF668\r
-  MODULE_TYPE                    = UEFI_DRIVER\r
+  MODULE_TYPE                    = UEFI_APPLICATION\r
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = NULL|UEFI_APPLICATION UEFI_DRIVER\r
   CONSTRUCTOR                    = ShellTftpCommandLibConstructor\r