]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/patches: Update pending patches to fix builds
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 15 Nov 2011 10:26:58 +0000 (10:26 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 15 Nov 2011 10:26:58 +0000 (10:26 +0000)
This update should fix the build errors due to the postfix 'U' added to PCD numbers.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12708 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/Documentation/patches/BaseTools-Pending-Patches.patch

index 76224f1eb1795cff0b05ed0498f0fe552028c1c9..2265ee1b2bbcc8a59d1dc1855bd7ca8159b57a46 100755 (executable)
@@ -1,6 +1,6 @@
 Index: BaseTools/Conf/build_rule.template
 ===================================================================
---- BaseTools/Conf/build_rule.template (revision 12664)
+--- BaseTools/Conf/build_rule.template (revision 12691)
 +++ BaseTools/Conf/build_rule.template (working copy)
 @@ -129,7 +129,7 @@
          "$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src}\r
@@ -58,7 +58,7 @@ Index: BaseTools/Conf/build_rule.template
          \r
 Index: BaseTools/Conf/tools_def.template
 ===================================================================
---- BaseTools/Conf/tools_def.template  (revision 12664)
+--- BaseTools/Conf/tools_def.template  (revision 12691)
 +++ BaseTools/Conf/tools_def.template  (working copy)
 @@ -467,6 +467,7 @@
  #   MSFT           - Microsoft\r
@@ -141,7 +141,7 @@ Index: BaseTools/Conf/tools_def.template
  #################\r
 Index: BaseTools/Source/Python/Workspace/MetaFileParser.py
 ===================================================================
---- BaseTools/Source/Python/Workspace/MetaFileParser.py        (revision 12664)
+--- BaseTools/Source/Python/Workspace/MetaFileParser.py        (revision 12691)
 +++ BaseTools/Source/Python/Workspace/MetaFileParser.py        (working copy)
 @@ -1280,6 +1280,9 @@
              Records = IncludedFileTable.GetAll()
@@ -155,7 +155,7 @@ Index: BaseTools/Source/Python/Workspace/MetaFileParser.py
          self._ValueList = [ReplaceMacro(Value, self._Macros, RaiseError=True)
 Index: BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
 ===================================================================
---- BaseTools/Source/Python/Workspace/WorkspaceDatabase.py     (revision 12664)
+--- BaseTools/Source/Python/Workspace/WorkspaceDatabase.py     (revision 12691)
 +++ BaseTools/Source/Python/Workspace/WorkspaceDatabase.py     (working copy)
 @@ -2319,7 +2319,7 @@
      # @param GlobalMacros       Global macros used for replacement during file parsing\r
@@ -217,7 +217,7 @@ Index: BaseTools/Source/Python/Workspace/WorkspaceDatabase.py
              \r
 Index: BaseTools/Source/Python/build/build.py
 ===================================================================
---- BaseTools/Source/Python/build/build.py     (revision 12664)
+--- BaseTools/Source/Python/build/build.py     (revision 12691)
 +++ BaseTools/Source/Python/build/build.py     (working copy)
 @@ -704,6 +704,8 @@
      #\r
@@ -237,9 +237,41 @@ Index: BaseTools/Source/Python/build/build.py
          self.BuildDatabase  = self.Db.BuildObject\r
          self.Platform       = None\r
          self.LoadFixAddress = 0\r
+Index: BaseTools/Source/Python/Trim/Trim.py
+===================================================================
+--- BaseTools/Source/Python/Trim/Trim.py       (revision 12691)
++++ BaseTools/Source/Python/Trim/Trim.py       (working copy)
+@@ -37,7 +37,9 @@
+ ## Regular expression for matching "#pragma pack"
+ gPragmaPattern = re.compile("^\s*#pragma\s+pack", re.MULTILINE)
+ ## Regular expression for matching HEX number
+-gHexNumberPattern = re.compile("0[xX]([0-9a-fA-F]+)")
++gHexNumberPattern = re.compile("(0[xX])([0-9a-fA-F]+)U?")
++## Regular expression for matching decimal number
++gDecNumberPattern = re.compile("([0-9]+)U?")
+ ## Regular expression for matching "Include ()" in asl file
+ gAslIncludePattern = re.compile("^(\s*)[iI]nclude\s*\(\"?([^\"\(\)]+)\"\)", re.MULTILINE)
+ ## Regular expression for matching C style #include "XXX.asl" in asl file
+@@ -169,10 +171,15 @@
+         # convert HEX number format if indicated
+         if ConvertHex:
+-            Line = gHexNumberPattern.sub(r"0\1h", Line)
++            Line = gHexNumberPattern.sub(r"0\2h", Line)
++        else:
++            Line = gHexNumberPattern.sub(r"\1\2", Line)
+         if TrimLong:
+             Line = gLongNumberPattern.sub(r"\1", Line)
++        # convert Decimal number format
++        Line = gDecNumberPattern.sub(r"\1", Line)
++
+         if LineNumber != None:
+             EdkLogger.verbose("Got line directive: line=%d" % LineNumber)
+             # in case preprocessor removed some lines, like blank or comment lines
 Index: BaseTools/Source/C/GenFv/GenFv.c
 ===================================================================
---- BaseTools/Source/C/GenFv/GenFv.c   (revision 12664)
+--- BaseTools/Source/C/GenFv/GenFv.c   (revision 12691)
 +++ BaseTools/Source/C/GenFv/GenFv.c   (working copy)
 @@ -623,12 +623,7 @@
                );\r
@@ -257,7 +289,7 @@ Index: BaseTools/Source/C/GenFv/GenFv.c
      //\r
 Index: BaseTools/Source/C/GenFv/GenFvInternalLib.c
 ===================================================================
---- BaseTools/Source/C/GenFv/GenFvInternalLib.c        (revision 12664)
+--- BaseTools/Source/C/GenFv/GenFvInternalLib.c        (revision 12691)
 +++ BaseTools/Source/C/GenFv/GenFvInternalLib.c        (working copy)
 @@ -506,6 +506,7 @@
  \r