summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorYingke Liu <yingke.d.liu@intel.com>2015-01-19 05:04:28 +0000
committeryingke <yingke@Edk2>2015-01-19 05:04:28 +0000
commit2f04e527397f6e6646ca7a96436b5edb29d303e9 (patch)
tree7c3ff169c05d9ec2a58be38fb38fe23677024902 /BaseTools
parentb0e23cf32bc5f13c77e80b1e63faa14511c118c1 (diff)
downloadedk2-platforms-2f04e527397f6e6646ca7a96436b5edb29d303e9.tar.xz
Fix SET statement bug which is always evaluated even it is in a False conditional statement.
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@16620 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/GenFds/FdfParser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py b/BaseTools/Source/Python/GenFds/FdfParser.py
index f4ccda9374..8091a51f35 100644
--- a/BaseTools/Source/Python/GenFds/FdfParser.py
+++ b/BaseTools/Source/Python/GenFds/FdfParser.py
@@ -715,6 +715,8 @@ class FdfParser:
self.__SetMacroValue(Macro, Value)
self.__WipeOffArea.append(((DefineLine, DefineOffset), (self.CurrentLineNumber - 1, self.CurrentOffsetWithinLine - 1)))
elif self.__Token == 'SET':
+ if not self.__GetIfListCurrentItemStat(IfList):
+ continue
SetLine = self.CurrentLineNumber - 1
SetOffset = self.CurrentOffsetWithinLine - len('SET')
PcdPair = self.__GetNextPcdName()