]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/build/BuildReport.py
BaseTools: Add *B Flag for the field that from command line
[mirror_edk2.git] / BaseTools / Source / Python / build / BuildReport.py
index 53d0039c51495fccd7032bafd771f8c8289dc52a..21144991bf796b725f6af878a4bf1d33e79af68e 100644 (file)
@@ -1236,14 +1236,10 @@ class PcdReport(object):
     def PrintStructureInfo(self, File, Struct):\r
         NewInfo = collections.OrderedDict()\r
         for Key, Value in Struct.items():\r
-            if Key not in NewInfo:\r
-                NewInfo[Key] = Value[0]\r
+            if Value[1] and 'build command options' in Value[1]:\r
+                FileWrite(File, '    *B  %-*s = %s' % (self.MaxLen + 4, '.' + Key, Value[0]))\r
             else:\r
-                del NewInfo[Key]\r
-                NewInfo[Key] = Value[0]\r
-        if NewInfo:\r
-            for item in NewInfo:\r
-                FileWrite(File, '        %-*s = %s' % (self.MaxLen + 4, '.' + item, NewInfo[item]))\r
+                FileWrite(File, '        %-*s = %s' % (self.MaxLen + 4, '.' + Key, Value[0]))\r
 \r
     def StrtoHex(self, value):\r
         try:\r