]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix the regression issue after enbaling s_* an d_* macros in FDF.
authorYingke Liu <yingke.d.liu@intel.com>
Fri, 12 Sep 2014 06:57:22 +0000 (06:57 +0000)
committeryingke <yingke@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 12 Sep 2014 06:57:22 +0000 (06:57 +0000)
Add the missing 'MacroDict' field in FfsInfStatement.

The issue is that BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 448, in __ExtendMacro__
    String = GenFdsGlobalVariable.MacroExtend(String, self.MacroDict)
AttributeError: OptRomInfStatement instance has no attribute 'MacroDict'

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yingke Liu <yingke.d.liu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16099 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Source/Python/GenFds/FfsInfStatement.py

index 6f5aac02f54efee40354ff3a20966e9586c9fb7c..040d2ebcd4c8ff861976f459a9b72cfc6818a22f 100644 (file)
@@ -68,6 +68,7 @@ class FfsInfStatement(FfsInfStatementClassObject):
         self.InfFileName = None\r
         self.OverrideGuid = None\r
         self.PatchedBinFile = ''\r
+        self.MacroDict = {}\r
 \r
     ## GetFinalTargetSuffixMap() method\r
     #\r