]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / Disk / PartitionDxe / PartitionDxe.inf
index 18a95a9957d4c9a19ec9367d95d2a86137f9d4d5..14ab6ae1984e29b25e6015781d993a46801c59cb 100644 (file)
@@ -1,81 +1,54 @@
-#/** @file\r
-# Component description file for Partition module.\r
+## @file\r
+#  Modules that produces the logic Block I/O protocol for every partition via the physical Block I/O.\r
 #\r
-# Partition driver produces the logical BlockIo device\r
-#  that represents the bytes Start to End of the Parent Block IO\r
-#  device (one partition of physical BlockIo device,\r
-#  which can be one of GPT, MBR, ElTorito partition).\r
+#  This module produces the logical Block I/O device that represents\r
+#  the bytes from Start to End of the Parent Block I/O device.\r
+#  The partition of physical BlockIo device supported is one of legacy MBR, GPT,\r
+#  UDF and "El Torito" partitions.\r
 #\r
-#  Copyright (c) 2006 - 2007, Intel Corporation\r
-#  All rights reserved. This program and the accompanying materials\r
-#  are licensed and made available under the terms and conditions of the BSD License\r
-#  which accompanies this distribution. The full text of the license may be found at\r
-#  http://opensource.org/licenses/bsd-license.php\r
+#  Caution: This module requires additional review when modified.\r
+#  This driver will have external input - disk partition.\r
+#  This external input must be validated carefully to avoid security issue like\r
+#  buffer overflow, integer overflow.\r
 #\r
-#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+#  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
-#\r
-#**/\r
+##\r
 \r
-################################################################################\r
-#\r
-# Defines Section - statements that will be processed to create a Makefile.\r
-#\r
-################################################################################\r
 [Defines]\r
   INF_VERSION                    = 0x00010005\r
   BASE_NAME                      = PartitionDxe\r
+  MODULE_UNI_FILE                = PartitionDxe.uni\r
   FILE_GUID                      = 1FA1F39E-FEFF-4aae-BD7B-38A070A3B609\r
   MODULE_TYPE                    = UEFI_DRIVER\r
   VERSION_STRING                 = 1.0\r
-  EDK_RELEASE_VERSION            = 0x00020000\r
-  EFI_SPECIFICATION_VERSION      = 0x00020000\r
-\r
   ENTRY_POINT                    = InitializePartition\r
 \r
 #\r
 # The following information is for reference only and not required by the build tools.\r
 #\r
-#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
-#\r
-#  DRIVER_BINDING                =  gPartitionDriverBinding\r
-#  COMPONENT_NAME                =  gPartitionComponentName\r
+#  VALID_ARCHITECTURES           = IA32 X64 EBC\r
 #\r
-\r
-################################################################################\r
-#\r
-# Sources Section - list of files that are required for the build to succeed.\r
+#  DRIVER_BINDING                = gPartitionDriverBinding\r
+#  COMPONENT_NAME                = gPartitionComponentName\r
+#  COMPONENT_NAME2               = gPartitionComponentName2\r
 #\r
-################################################################################\r
 \r
-[Sources.common]\r
+[Sources]\r
   ComponentName.c\r
   Mbr.c\r
   Gpt.c\r
   ElTorito.c\r
+  Udf.c\r
   Partition.c\r
   Partition.h\r
 \r
 \r
-################################################################################\r
-#\r
-# Package Dependency Section - list of Package files that are required for\r
-#                              this module.\r
-#\r
-################################################################################\r
-\r
 [Packages]\r
   MdePkg/MdePkg.dec\r
 \r
 \r
-################################################################################\r
-#\r
-# Library Class Section - list of Library Classes that are required for\r
-#                         this module.\r
-#\r
-################################################################################\r
-\r
 [LibraryClasses]\r
   DevicePathLib\r
   UefiBootServicesTableLib\r
   DebugLib\r
 \r
 \r
-################################################################################\r
-#\r
-# Guid C Name Section - list of Guids that this module uses or produces.\r
-#\r
-################################################################################\r
-\r
 [Guids]\r
-  gEfiPartTypeUnusedGuid                        # SOMETIMES_CONSUMED\r
-  gEfiPartTypeSystemPartGuid                    # SOMETIMES_CONSUMED\r
+  gEfiPartTypeUnusedGuid                        ## SOMETIMES_CONSUMES ## GUID\r
+  ## SOMETIMES_CONSUMES ## GUID\r
+  ## SOMETIMES_CONSUMES ## GUID # Install protocol\r
+  gEfiPartTypeSystemPartGuid\r
 \r
 \r
-################################################################################\r
-#\r
-# Protocol C Name Section - list of Protocol and Protocol Notify C Names\r
-#                           that this module uses or produces.\r
-#\r
-################################################################################\r
-\r
 [Protocols]\r
-  gEfiBlockIoProtocolGuid                       # PROTOCOL BY_START\r
-  gEfiDevicePathProtocolGuid                    # PROTOCOL BY_START\r
-  gEfiDevicePathProtocolGuid                    # PROTOCOL TO_START\r
-  gEfiDiskIoProtocolGuid                        # PROTOCOL TO_START\r
-  gEfiBlockIoProtocolGuid                       # PROTOCOL TO_START\r
-\r
+  ## BY_START\r
+  ## TO_START\r
+  gEfiBlockIoProtocolGuid\r
+  ## BY_START\r
+  ## TO_START\r
+  gEfiBlockIo2ProtocolGuid\r
+  ## BY_START\r
+  ## TO_START\r
+  gEfiDevicePathProtocolGuid\r
+  gEfiPartitionInfoProtocolGuid                 ## BY_START\r
+  gEfiDiskIoProtocolGuid                        ## TO_START\r
+  gEfiDiskIo2ProtocolGuid                       ## TO_START\r
+\r
+[UserExtensions.TianoCore."ExtraFiles"]\r
+  PartitionDxeExtra.uni\r