Set the FdfPcdSet to be empty if the platform DSC does not has assosicated FDF file.
authorqhuang8 <qhuang8@c2973edb-eda0-4c78-bc6a-9341b269661f>
Mon, 1 Feb 2010 02:35:58 +0000 (02:35 +0000)
committerqhuang8 <qhuang8@c2973edb-eda0-4c78-bc6a-9341b269661f>
Mon, 1 Feb 2010 02:35:58 +0000 (02:35 +0000)
git-svn-id: https://edk2-buildtools.svn.sourceforge.net/svnroot/edk2-buildtools/trunk/BaseTools@1829 c2973edb-eda0-4c78-bc6a-9341b269661f

Source/Python/build/BuildReport.py

index ede488e..1facd4e 100755 (executable)
@@ -522,7 +522,10 @@ class PcdReport(object):
     def __init__(self, Wa):
         self.AllPcds = {}
         self.MaxLen = 0
-        self.FdfPcdSet = Wa.FdfProfile.PcdDict
+        if Wa.FdfProfile:
+            self.FdfPcdSet = Wa.FdfProfile.PcdDict
+        else:
+            self.FdfPcdSet = {}
 
         self.DecPcdDefault = {}
         self.ModulePcdOverride = {}