]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenFw/GenFw.c
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / C / GenFw / GenFw.c
index af2c909866d5c95db8cd820124577ad0386fbd44..973bae5fe4dbec9c13d36f95e506a9138c8451a1 100644 (file)
@@ -2,13 +2,7 @@
 Converts a pe32+ image to an FW, Te image type, or other specific image.\r
 \r
 Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
-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
-\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
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -176,7 +170,7 @@ Returns:
   //\r
   fprintf (stdout, "Options:\n");\r
   fprintf (stdout, "  -o FileName, --outputfile FileName\n\\r
-                        File will be created to store the ouput content.\n");\r
+                        File will be created to store the output content.\n");\r
   fprintf (stdout, "  -e EFI_FILETYPE, --efiImage EFI_FILETYPE\n\\r
                         Create Efi Image. EFI_FILETYPE is one of BASE,SMM_CORE,\n\\r
                         PEI_CORE, PEIM, DXE_CORE, DXE_DRIVER, UEFI_APPLICATION,\n\\r
@@ -261,13 +255,13 @@ Returns:
                         Guid is used to specify hii package list guid.\n\\r
                         Its format is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\n\\r
                         If not specified, the first Form FormSet guid is used.\n");\r
-  fprintf (stdout, "  --hiipackage          Combine all input binary hii pacakges into \n\\r
+  fprintf (stdout, "  --hiipackage          Combine all input binary hii packages into \n\\r
                         a single package list as the text resource data(RC).\n\\r
                         It can't be combined with other action options\n\\r
                         except for -o option. It is a action option.\n\\r
                         If it is combined with other action options, the later\n\\r
                         input action option will override the previous one.\n");\r
-  fprintf (stdout, "  --hiibinpackage       Combine all input binary hii pacakges into \n\\r
+  fprintf (stdout, "  --hiibinpackage       Combine all input binary hii packages into \n\\r
                         a single package list as the binary resource section.\n\\r
                         It can't be combined with other action options\n\\r
                         except for -o option. It is a action option.\n\\r
@@ -559,7 +553,7 @@ PeCoffConvertImageToXip (
   if (PeHdr->Pe32.OptionalHeader.SectionAlignment != PeHdr->Pe32.OptionalHeader.FileAlignment) {\r
     //\r
     // The only reason to expand zero fill sections is to make them compatible with XIP images.\r
-    // If SectionAlignment is not equal to FileAlginment then it is not an XIP type image.\r
+    // If SectionAlignment is not equal to FileAlignment then it is not an XIP type image.\r
     //\r
     return;\r
   }\r
@@ -1390,7 +1384,7 @@ Returns:
         goto Finish;\r
       }\r
       if (LogLevel > 9) {\r
-        Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0-9, currnt input level is %d", (int) LogLevel);\r
+        Error (NULL, 0, 1003, "Invalid option value", "Debug Level range is 0-9, current input level is %d", (int) LogLevel);\r
         goto Finish;\r
       }\r
       SetPrintLevel (LogLevel);\r
@@ -1536,16 +1530,16 @@ Returns:
     VerboseMsg ("Dump the TE header information of the input TE image.");\r
     break;\r
   case FW_MCI_IMAGE:\r
-    VerboseMsg ("Conver input MicroCode.txt file to MicroCode.bin file.");\r
+    VerboseMsg ("Convert input MicroCode.txt file to MicroCode.bin file.");\r
     break;\r
   case FW_MERGE_IMAGE:\r
     VerboseMsg ("Combine the input multi microcode bin files to one bin file.");\r
     break;\r
   case FW_HII_PACKAGE_LIST_RCIMAGE:\r
-    VerboseMsg ("Combine the input multi hii bin packages to one text pacakge list RC file.");\r
+    VerboseMsg ("Combine the input multi hii bin packages to one text package list RC file.");\r
     break;\r
   case FW_HII_PACKAGE_LIST_BINIMAGE:\r
-    VerboseMsg ("Combine the input multi hii bin packages to one binary pacakge list file.");\r
+    VerboseMsg ("Combine the input multi hii bin packages to one binary package list file.");\r
     break;\r
   case FW_REBASE_IMAGE:\r
     VerboseMsg ("Rebase the input image to new base address.");\r
@@ -1633,7 +1627,7 @@ Returns:
       goto Finish;\r
     }\r
     //\r
-    // Get hii package list lenght\r
+    // Get hii package list length\r
     //\r
     HiiPackageListHeader.PackageLength = sizeof (EFI_HII_PACKAGE_LIST_HEADER);\r
     for (Index = 0; Index < InputFileNum; Index ++) {\r
@@ -1668,7 +1662,7 @@ Returns:
       goto Finish;\r
     }\r
     if (memcmp (&HiiPackageListGuid, &mZeroGuid, sizeof (EFI_GUID)) == 0) {\r
-      Error (NULL, 0, 3000, "Invalid", "HII pacakge list guid is not specified!");\r
+      Error (NULL, 0, 3000, "Invalid", "HII package list guid is not specified!");\r
       goto Finish;\r
     }\r
     memcpy (&HiiPackageListHeader.PackageListGuid, &HiiPackageListGuid, sizeof (EFI_GUID));\r
@@ -2172,7 +2166,7 @@ Returns:
 \r
   if (PeHdr->Pe32.FileHeader.Machine == IMAGE_FILE_MACHINE_ARM) {\r
     // Some tools kick out IMAGE_FILE_MACHINE_ARM (0x1c0) vs IMAGE_FILE_MACHINE_ARMT (0x1c2)\r
-    // so patch back to the offical UEFI value.\r
+    // so patch back to the official UEFI value.\r
     PeHdr->Pe32.FileHeader.Machine = IMAGE_FILE_MACHINE_ARMT;\r
   }\r
 \r
@@ -2372,7 +2366,7 @@ Returns:
             //\r
             memset (SectionHeader->Name, 0, sizeof (SectionHeader->Name));\r
             //\r
-            // Zero Execption Table\r
+            // Zero Exception Table\r
             //\r
             Optional32->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_EXCEPTION].VirtualAddress = 0;\r
             Optional32->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_EXCEPTION].Size           = 0;\r
@@ -2479,7 +2473,7 @@ Returns:
                 memset (RuntimeFunction, 0, sizeof (RUNTIME_FUNCTION));\r
               }\r
               //\r
-              // Zero Execption Table\r
+              // Zero Exception Table\r
               //\r
               Optional64->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_EXCEPTION].Size = 0;\r
               Optional64->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_EXCEPTION].VirtualAddress = 0;\r