IntelFrameworkPkg: INF/DEC file updates to EDK II packages
authorGao, Liming <liming.gao@intel.com>
Thu, 28 Aug 2014 03:19:58 +0000 (03:19 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 28 Aug 2014 03:19:58 +0000 (03:19 +0000)
1. Usage information in INF file comment blocks are either incomplete or incorrect.
This includes usage information for Protocols/PPIs/GUIDs/PCDs/HOBs/Events/BootModes.
The syntax for usage information in comment blocks is defined in the EDK II Module Information (INF) Specification

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gao, Liming <liming.gao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15925 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkPkg/Library/DxeIoLibCpuIo/DxeIoLibCpuIo.inf
IntelFrameworkPkg/Library/DxeSmmDriverEntryPoint/DxeSmmDriverEntryPoint.inf
IntelFrameworkPkg/Library/FrameworkUefiLib/FrameworkUefiLib.inf
IntelFrameworkPkg/Library/PeiHobLibFramework/PeiHobLibFramework.inf
IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/PeiSmbusLibSmbusPpi.inf

index c5e3e61..e3c6890 100644 (file)
@@ -1,9 +1,7 @@
 ## @file\r
-# Component description file for Cpu Io Dxe Io Library.\r
+# I/O Library implementation that uses the CPU I/O Protocol for I/O and MMIO operations.\r
 #\r
-# I/O Library implementation that uses the CPU I/O Protocol for I/O\r
-#  and MMIO operations.\r
-# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -18,6 +16,7 @@
 [Defines]\r
   INF_VERSION                    = 0x00010005\r
   BASE_NAME                      = DxeIoLibCpuIo\r
+  MODULE_UNI_FILE                = DxeIoLibCpuIo.uni\r
   FILE_GUID                      = e94cd42a-3aad-4ea0-9b09-945891c60ccd\r
   MODULE_TYPE                    = DXE_DRIVER\r
   VERSION_STRING                 = 1.0\r
@@ -46,7 +45,8 @@
   UefiBootServicesTableLib\r
 \r
 [Protocols]\r
-  gEfiCpuIoProtocolGuid                         # PROTOCOL ALWAYS_CONSUMED\r
+  gEfiCpuIoProtocolGuid                         ## CONSUMES\r
 \r
 [Depex.common.DXE_DRIVER, Depex.common.DXE_RUNTIME_DRIVER, Depex.common.DXE_SAL_DRIVER, Depex.common.DXE_SMM_DRIVER]\r
-  gEfiCpuIoProtocolGuid
\ No newline at end of file
+  gEfiCpuIoProtocolGuid\r
+\r
index a9d031d..9a5b523 100644 (file)
@@ -1,8 +1,9 @@
 ## @file\r
-# SMM driver entry point library\r
+# Framework SMM driver entry point library.\r
 #\r
-# Register driver in SMRAM and wrapper driver library constructors and entry point\r
-# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Register driver in SMRAM and wrapper driver's library constructors and entry point.\r
+#\r
+# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -17,6 +18,7 @@
 [Defines]\r
   INF_VERSION                    = 0x00010005\r
   BASE_NAME                      = DxeSmmDriverEntryPoint\r
+  MODULE_UNI_FILE                = DxeSmmDriverEntryPoint.uni\r
   FILE_GUID                      = 79C5C7B7-1083-42a6-AD15-2A4E7C4274D7\r
   MODULE_TYPE                    = DXE_SMM_DRIVER\r
   VERSION_STRING                 = 1.0\r
   DevicePathLib\r
 \r
 [Protocols]\r
-  gEfiLoadedImageProtocolGuid                   # PROTOCOL ALWAYS_CONSUMED\r
-  gEfiSmmBaseProtocolGuid                       # PROTOCOL ALWAYS_CONSUMED\r
-  gEfiDevicePathProtocolGuid                    # PROTOCOL ALWAYS_CONSUMED\r
+  gEfiLoadedImageProtocolGuid                   ## CONSUMES\r
+  gEfiSmmBaseProtocolGuid                       ## CONSUMES\r
+  gEfiDevicePathProtocolGuid                    ## CONSUMES\r
   \r
 [Depex]\r
   gEfiSmmBaseProtocolGuid\r
 \r
-\r
index cb4841b..7057ef6 100644 (file)
@@ -1,13 +1,11 @@
 ## @file\r
-#  Component description file for the entry point to a EFIDXE Drivers\r
-#\r
 #  Library to abstract Framework extensions that conflict with UEFI 2.0 Specification.\r
-#  Help Port Framework/Tinao code that has conflicts with UEFI 2.0 by hiding the oldconflicts \r
-#  with library functions and supporting implementations of the old (EDK/EFI 1.10) and new \r
-#  (EDK II/UEFI 2.0) way. This module is a DXE driver as it contains DXE enum extensions for \r
-#  EFI event services.\r
 #\r
-#  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+#  This library is helpful to port Framework/Tinao code that has conflicts with UEFI 2.0. \r
+#  It hides the old conflicts with library functions and supporting implementations of\r
+#  the old (EDK/EFI 1.10) and new (EDK II/UEFI 2.0) way.\r
+#\r
+#  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -22,6 +20,7 @@
 [Defines]\r
   INF_VERSION                    = 0x00010005\r
   BASE_NAME                      = FrameworkUefiLib\r
+  MODULE_UNI_FILE                = FrameworkUefiLib.uni\r
   FILE_GUID                      = B2F0D71A-A39F-4094-854B-0C6BA6910CCE\r
   MODULE_TYPE                    = UEFI_DRIVER\r
   VERSION_STRING                 = 1.0\r
   DevicePathLib\r
   \r
 [Guids]\r
-  gEfiEventReadyToBootGuid                      # ALWAYS_CONSUMED\r
-  gEfiEventLegacyBootGuid                       # ALWAYS_CONSUMED\r
+  gEfiEventReadyToBootGuid                      ## SOMETIMES_CONSUMES  ## Event\r
+  gEfiEventLegacyBootGuid                       ## SOMETIMES_CONSUMES  ## Event\r
 \r
 [Protocols]\r
-  gEfiDriverBindingProtocolGuid                 # ALWAYS_CONSUMED\r
-  gEfiSimpleTextOutProtocolGuid                 # ALWAYS_CONSUMED\r
-  gEfiGraphicsOutputProtocolGuid                # ALWAYS_CONSUMED\r
-  gEfiHiiFontProtocolGuid                       # ALWAYS_CONSUMED\r
-  gEfiComponentNameProtocolGuid                 # SOMETIMES_CONSUMED\r
-  gEfiComponentName2ProtocolGuid                # SOMETIMES_CONSUMED\r
-  gEfiDriverConfigurationProtocolGuid           # SOMETIMES_CONSUMED\r
-  gEfiDriverConfiguration2ProtocolGuid          # SOMETIMES_CONSUMED\r
-  gEfiDriverDiagnosticsProtocolGuid             # SOMETIMES_CONSUMED\r
-  gEfiDriverDiagnostics2ProtocolGuid            # SOMETIMES_CONSUMED\r
-  gEfiUgaDrawProtocolGuid                       # SOMETIMES_CONSUMED\r
+  gEfiDriverBindingProtocolGuid                 ## SOMETIMES_PRODUCES\r
+  gEfiSimpleTextOutProtocolGuid                 ## SOMETIMES_CONSUMES\r
+  gEfiGraphicsOutputProtocolGuid                ## SOMETIMES_CONSUMES\r
+  gEfiHiiFontProtocolGuid                       ## SOMETIMES_CONSUMES\r
+  gEfiComponentNameProtocolGuid                 ## SOMETIMES_PRODUCES\r
+  gEfiComponentName2ProtocolGuid                ## SOMETIMES_PRODUCES\r
+  gEfiDriverConfigurationProtocolGuid           ## SOMETIMES_PRODUCES\r
+  gEfiDriverConfiguration2ProtocolGuid          ## SOMETIMES_PRODUCES\r
+  gEfiDriverDiagnosticsProtocolGuid             ## SOMETIMES_PRODUCES\r
+  gEfiDriverDiagnostics2ProtocolGuid            ## SOMETIMES_PRODUCES\r
+  gEfiUgaDrawProtocolGuid                       ## SOMETIMES_CONSUMES\r
 \r
 \r
 [Pcd]\r
-  gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize\r
+  gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize ## SOMETIMES_CONSUMES\r
 \r
 [FeaturePcd]\r
-  gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable\r
-  gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable\r
-  gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable\r
-  gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable\r
-  gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport\r
+  gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable    ## CONSUMES\r
+  gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable        ## CONSUMES\r
+  gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable   ## CONSUMES\r
+  gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable       ## CONSUMES\r
+  gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport           ## CONSUMES\r
 \r
index 9a92df8..b10be00 100644 (file)
@@ -5,7 +5,7 @@
 # This library instance uses EFI_HOB_TYPE_CV defined in Intel framework HOB specification v0.9\r
 # to implement HobLib BuildCvHob() API. \r
 #\r
-# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -20,6 +20,7 @@
 [Defines]\r
   INF_VERSION                    = 0x00010005\r
   BASE_NAME                      = PeiHobLib\r
+  MODULE_UNI_FILE                = PeiHobLib.uni\r
   FILE_GUID                      = B6684612-6F5D-425d-952C-F462792EC00B\r
   MODULE_TYPE                    = PEIM\r
   VERSION_STRING                 = 1.0\r
   DebugLib\r
 \r
 [Guids]\r
-  gEfiHobMemoryAllocStackGuid                   ## PRODUCES ## HOB\r
-  gEfiHobMemoryAllocBspStoreGuid                ## PRODUCES ## HOB\r
-  gEfiHobMemoryAllocModuleGuid                  ## PRODUCES ## HOB\r
+  gEfiHobMemoryAllocStackGuid                   ## SOMETIMES_PRODUCES ## HOB # MemoryAllocation StackHob\r
+  gEfiHobMemoryAllocBspStoreGuid                ## SOMETIMES_PRODUCES ## HOB # MemoryAllocation BspStoreHob\r
+  gEfiHobMemoryAllocModuleGuid                  ## SOMETIMES_PRODUCES ## HOB # MemoryAllocation ModuleHob\r
 \r
 #\r
 # [Hob]\r
-#   RESOURCE_DESCRIPTOR   ## PRODUCES\r
-#   MEMORY_ALLOCATION     ## PRODUCES\r
-#   GUID_EXTENSION        ## CONSUMES\r
-#   GUID_EXTENSION        ## PRODUCES\r
-#   CPU                   ## PRODUCES\r
-#   FV2                   ## PRODUCES\r
-#   FV                    ## PRODUCES\r
+#   MEMORY_ALLOCATION     ## SOMETIMES_PRODUCES\r
+#   RESOURCE_DESCRIPTOR   ## SOMETIMES_PRODUCES\r
+#   FIRMWARE_VOLUME       ## SOMETIMES_PRODUCES\r
 #   \r
 \r
index 044c9d1..d56d4d3 100644 (file)
@@ -1,8 +1,7 @@
 ## @file\r
-# Component description file for Pei Smbus Library.\r
-#\r
 # SMBUS library that layers on top of the SMBUS PPI.\r
-# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+#\r
+# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -17,6 +16,7 @@
 [Defines]\r
   INF_VERSION                    = 0x00010005\r
   BASE_NAME                      = PeiSmbusLibSmbusPpi\r
+  MODULE_UNI_FILE                = PeiSmbusLibSmbusPpi.uni\r
   FILE_GUID                      = 51C4C059-67F0-4e3c-9A55-FF42A8291C8C\r
   MODULE_TYPE                    = PEIM\r
   VERSION_STRING                 = 1.0\r
@@ -47,7 +47,7 @@
   PeiServicesTablePointerLib\r
 \r
 [Ppis]\r
-  gEfiPeiSmbusPpiGuid                           # PPI ALWAYS_CONSUMED\r
+  gEfiPeiSmbusPpiGuid                           ## CONSUMES\r
 \r
 [Depex]\r
   gEfiPeiSmbusPpiGuid\r