]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix various typos
authorAntoine Cœur <coeur@gmx.fr>
Thu, 4 Jul 2019 11:43:48 +0000 (19:43 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Mon, 8 Jul 2019 00:59:29 +0000 (08:59 +0800)
Fix various typos in BaseTools.

Signed-off-by: Cœur <coeur@gmx.fr>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
15 files changed:
BaseTools/Conf/XMLSchema/DistributionPackage.xsd
BaseTools/Scripts/PackageDocumentTools/plugins/EdkPlugins/edk2/model/doxygengen.py
BaseTools/Scripts/PackageDocumentTools/plugins/EdkPlugins/edk2/model/doxygengen_spec.py
BaseTools/Source/C/Common/FirmwareVolumeBuffer.c
BaseTools/Source/C/Include/Common/BaseTypes.h
BaseTools/Source/C/Makefiles/NmakeSubdirs.py
BaseTools/Source/C/VfrCompile/Pccts/antlr/lex.c
BaseTools/Source/C/VfrCompile/Pccts/h/err.h
BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools/Source/Python/BPDG/GenVpd.py
BaseTools/Source/Python/Common/ToolDefClassObject.py
BaseTools/Source/Python/UPT/Library/DataType.py
BaseTools/Source/Python/UPT/Library/StringUtils.py
BaseTools/Source/Python/UPT/Logger/StringTable.py
BaseTools/Source/Python/UPT/Object/Parser/InfBuildOptionObject.py

index 7499c325c35ffb32b35ef7eb33bde58f61be3979..67be9c8f3294ec2a334cdba51ffb2d3e8e022c92 100644 (file)
@@ -166,7 +166,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
               Package.\r
             </xs:documentation>\r
             <xs:documentation xml:lang="en-us">\r
-              Each Distribution Package is uniquely identified by it's\r
+              Each Distribution Package is uniquely identified by its\r
               GUID and Version number.\r
             </xs:documentation>\r
           </xs:annotation>\r
@@ -363,7 +363,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
         Modules.\r
       </xs:documentation>\r
       <xs:documentation xml:lang="en-us">\r
-        Each package is uniquely identified by it's GUID and Version number.\r
+        Each package is uniquely identified by its GUID and Version number.\r
         Backward compatible releases of a package need only change the version number, while non-backward\r
         compatible changes require the GUID to change (resetting the version number to 1.0 is optional.)\r
       </xs:documentation>\r
@@ -1168,7 +1168,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
   <xs:element name="ModuleSurfaceArea">\r
     <xs:annotation>\r
       <xs:documentation xml:lang="en-us">\r
-        Each module is uniquely identified by it's GUID and Version number.\r
+        Each module is uniquely identified by its GUID and Version number.\r
         Backward compatible releases of a module need only change the version number, while non-backward\r
         compatible changes require the GUID to change (resetting the version number to 1.0 is optional.)\r
       </xs:documentation>\r
@@ -3092,7 +3092,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
           <xs:documentation xml:lang="en-us">\r
             The Patch PCD is a #define that is set at build time, and that\r
             can be modified within a binary file. Additional information, such as the offset location of the\r
-            value, along with it's length may need to be provided.\r
+            value, along with its length may need to be provided.\r
           </xs:documentation>\r
         </xs:annotation>\r
       </xs:enumeration>\r
index d0274d6afda8bab2da03ccb9b941c259d83349ce..89833043c6b1fcb860fbd940cae7b0f2fef3ebf6 100644 (file)
@@ -792,7 +792,7 @@ class PackageDocumentAction(DoxygenAction):
         Generate page for a module/library.\r
         @param infObj     INF file object for module/library\r
         @param configFile doxygen config file object\r
-        @param isLib      Whether this module is libary\r
+        @param isLib      Whether this module is library\r
 \r
         @param module doxygen page object\r
         """\r
index 3ba4eed55e80243a3280e7b51415686ca4f2ef85..e37938c466a2440b33bf963f6825d6d2161c5086 100644 (file)
@@ -793,7 +793,7 @@ class PackageDocumentAction(DoxygenAction):
         Generate page for a module/library.\r
         @param infObj     INF file object for module/library\r
         @param configFile doxygen config file object\r
-        @param isLib      Whether this module is libary\r
+        @param isLib      Whether this module is library\r
 \r
         @param module doxygen page object\r
         """\r
index 6e1914be29a082baede48e83714dfb71c704eba8..70741c8afcb58516e2e0010b935d49e4f6ada11c 100644 (file)
@@ -937,7 +937,7 @@ Arguments:
 \r
   Fv - Address of the Fv in memory\r
   Key - Should be 0 to get the first file.  After that, it should be\r
-        passed back in without modifying it's contents to retrieve\r
+        passed back in without modifying its contents to retrieve\r
         subsequent files.\r
   File - Output file pointer\r
     File == NULL - invalid parameter\r
@@ -1323,7 +1323,7 @@ Arguments:
   SectionsStart - Address of the start of the FFS sections array\r
   TotalSectionsSize - Total size of all the sections\r
   Key - Should be 0 to get the first section.  After that, it should be\r
-        passed back in without modifying it's contents to retrieve\r
+        passed back in without modifying its contents to retrieve\r
         subsequent files.\r
   Section - Output section pointer\r
     (Section == NULL) -> invalid parameter\r
index 9844d1d514b0605e3f8498b73cec0f9af5f96b13..31d0662085a811b358529c238cadd4862541806d 100644 (file)
@@ -151,7 +151,7 @@ typedef struct {
 \r
 ///\r
 ///  _CR - returns a pointer to the structure\r
-///      from one of it's elements.\r
+///      from one of its elements.\r
 ///\r
 #define _CR(Record, TYPE, Field)  ((TYPE *) ((CHAR8 *) (Record) - (CHAR8 *) &(((TYPE *) 0)->Field)))\r
 \r
index 30a481613e4c12efdcd8da5ff431207fdb257f30..356f5aca638eebf1366fb9279da478d053b48daa 100644 (file)
@@ -104,7 +104,7 @@ class ThreadControl(object):
         while len(self.running) > 0:\r
             time.sleep(0.1)\r
         if self.error:\r
-            print("subprocess not exit sucessfully")\r
+            print("subprocess not exit successfully")\r
             print(self.errorMsg)\r
 \r
     def startTask(self):\r
index 357b8ace016f1cf4f85913f41e440224a36e9043..fddb46bbc3988ac35c207745bf33bc4668cac72a 100644 (file)
@@ -298,7 +298,7 @@ genDefFile( )
                                        /* look in all lexclasses for the reg expr */\r
 \r
 /* MR10  Derek Pappas                                                */\r
-/* MR10     A #tokclass doesn't have associated regular expressiones */\r
+/* MR10     A #tokclass doesn't have associated regular expressions */\r
 /* MR10        so don't warn user about it's omission                */\r
 \r
                     p = (TermEntry *) hash_get(Tname, TokenString(i));\r
index b2b196bd758707d662bee36b95b0e3f2a0577133..435d48356d5ae03b89a5375fd7776d39e73a426c 100644 (file)
@@ -649,7 +649,7 @@ _inf_zzgettok()
 /* allocate default size text,token and line arrays;\r
  * then, read all of the input reallocing the arrays as needed.\r
  * Once the number of total tokens is known, the LATEXT(i) array (zzinf_text)\r
- * is allocated and it's pointers are set to the tokens in zzinf_text_buffer.\r
+ * is allocated and its pointers are set to the tokens in zzinf_text_buffer.\r
  */\r
 void\r
 #ifdef __USE_PROTOS\r
index e8e09dc8a3660e7543d524ec068623dd4a955359..a2077c551608e77ed13d5ea5a9278efe2e1029a8 100644 (file)
@@ -3030,7 +3030,7 @@ class ModuleAutoGen(AutoGen):
                 IncPathList = [NormPath(Path, self.Macros) for Path in BuildOptIncludeRegEx.findall(FlagOption)]\r
             else:\r
                 #\r
-                # RVCT may specify a list of directory seperated by commas\r
+                # RVCT may specify a list of directory separated by commas\r
                 #\r
                 IncPathList = []\r
                 for Path in BuildOptIncludeRegEx.findall(FlagOption):\r
@@ -3994,7 +3994,7 @@ class ModuleAutoGen(AutoGen):
     #\r
     @cached_class_function\r
     def CreateMakeFile(self, CreateLibraryMakeFile=True, GenFfsList = []):\r
-        # nest this function inside it's only caller.\r
+        # nest this function inside its only caller.\r
         def CreateTimeStamp():\r
             FileSet = {self.MetaFile.Path}\r
 \r
index 887a0c4a1f5a3a39a3a5b9ccc6dd2ef48c953a23..049c082f40e2c74c7236205be6e42269fc544136 100644 (file)
@@ -312,7 +312,7 @@ class GenVPD :
 \r
     ##\r
     # Parser the input file which is generated by the build tool. Convert the value of each pcd's\r
-    # from string to it's real format. Also remove the useless line in the input file.\r
+    # from string to its real format. Also remove the useless line in the input file.\r
     #\r
     def ParserInputFile (self):\r
         count = 0\r
@@ -483,7 +483,7 @@ class GenVPD :
         self.PcdFixedOffsetSizeList.sort(key=lambda x: x.PcdBinOffset)\r
 \r
         #\r
-        # Sort the un-fixed pcd's offset by it's size.\r
+        # Sort the un-fixed pcd's offset by its size.\r
         #\r
         self.PcdUnknownOffsetList.sort(key=lambda x: x.PcdBinSize)\r
 \r
@@ -605,7 +605,7 @@ class GenVPD :
             # Usually it will not enter into this thunk, if so, means it overlapped.\r
             else :\r
                 EdkLogger.error("BPDG", BuildToolError.ATTRIBUTE_NOT_AVAILABLE,\r
-                                "The offset value definition has overlapped at pcd: %s, it's offset is: %s, in file: %s line: %s" % \\r
+                                "The offset value definition has overlapped at pcd: %s, its offset is: %s, in file: %s line: %s" % \\r
                                 (eachFixedPcd.PcdCName, eachFixedPcd.PcdOffset, eachFixedPcd.InputFileName, eachFixedPcd.Lineno),\r
                                 None)\r
                 FixOffsetSizeListCount += 1\r
index 5d692ea13cfcc014a293afd02bab92711df4f9cf..4fa364942cad0b2e75006a1cb949d214d36906a4 100644 (file)
@@ -105,7 +105,7 @@ class ToolDefClassObject(object):
 \r
     ## IncludeToolDefFile\r
     #\r
-    # Load target.txt file and parse it as if it's contents were inside the main file\r
+    # Load target.txt file and parse it as if its contents were inside the main file\r
     #\r
     # @param Filename:  Input value for full path of tools_def.txt\r
     #\r
index 88559bcc43bfa1161aad9d0270df2ab6b19218c6..bd216786a5651aeb9e8401d22e47ecf856b557f3 100644 (file)
@@ -210,7 +210,7 @@ ARCH_LIST = ["IA32",
 ##\r
 # PCD driver type list items\r
 #\r
-PCD_DIRVER_TYPE_LIST = ["PEI_PCD_DRIVER", "DXE_PCD_DRIVER"]\r
+PCD_DRIVER_TYPE_LIST = ["PEI_PCD_DRIVER", "DXE_PCD_DRIVER"]\r
 \r
 ##\r
 # Boot Mode List Items\r
index e43924fa6c0111986e52945d9982e6da30b765f6..fbc5177caf5ab6b63bd07428ae88f2adfed5dbdc 100644 (file)
@@ -863,7 +863,7 @@ def ConvertNOTEQToNE(Expr):
 ## SplitPcdEntry\r
 #\r
 # Split an PCD entry string to Token.CName and PCD value and FFE.\r
-# NOTE: PCD Value and FFE can contain "|" in it's expression. And in INF specification, have below rule.\r
+# NOTE: PCD Value and FFE can contain "|" in its expression. And in INF specification, have below rule.\r
 # When using the characters "|" or "||" in an expression, the expression must be encapsulated in\r
 # open "(" and close ")" parenthesis.\r
 #\r
index 7782d262381970f5bb8062f37ce2b82c92f2accf..13c015844ea0dcd6b9367b5e97b73b4c3f063634 100644 (file)
@@ -251,7 +251,7 @@ ERR_ASBUILD_PCD_SECTION_TYPE = _("The AsBuilt INF file contains a PCD section ty
 ERR_ASBUILD_PATCHPCD_FORMAT_INVALID = _("The AsBuilt PatchPcd entry must contain 3 elements: PcdName|Value|Offset")\r
 ERR_ASBUILD_PCDEX_FORMAT_INVALID = _("The AsBuilt PcdEx entry must contain one element: PcdName")\r
 ERR_ASBUILD_PCD_VALUE_INVALID = \\r
-    _("The AsBuilt PCD value %s is incorrect or not align with it's datum type %s. "\r
+    _("The AsBuilt PCD value %s is incorrect or not align with its datum type %s. "\r
       "It must be corrected before continuing.")\r
 ERR_ASBUILD_PCD_TOKENSPACE_GUID_VALUE_MISS = _("Package file value could not be retrieved for %s.")\r
 ERR_ASBUILD_PCD_DECLARITION_MISS = _("PCD Declaration in DEC files could not be found for: %s.")\r
index 3383dc4b0fffe82250d429a0f4e2e06f9745c43d..fdba5db98311f4a24ea11df61eb807432459bc81 100644 (file)
@@ -49,7 +49,7 @@ class InfBuildOptionsObject(InfSectionCommonDef):
         InfSectionCommonDef.__init__(self)\r
     ## SetBuildOptions function\r
     #\r
-    # For BuildOptionName, need to validate it's format\r
+    # For BuildOptionName, need to validate its format\r
     # For BuildOptionValue, just ignore it.\r
     #\r
     # @param  Arch          Indicated which arch of build options belong to.\r