summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Common/ToolDefClassObject.py
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2017-11-24 14:30:11 +0800
committerLiming Gao <liming.gao@intel.com>2017-12-25 11:05:45 +0800
commitae7b6df816e913394a7f11264f24953658ff34ba (patch)
tree10906d07aa821e1aa531ee3048f3d946cd485cc2 /BaseTools/Source/Python/Common/ToolDefClassObject.py
parent309e37a22915dca12d3e5b914d8b3429f7624601 (diff)
downloadedk2-ae7b6df816e913394a7f11264f24953658ff34ba.tar.gz
edk2-ae7b6df816e913394a7f11264f24953658ff34ba.tar.bz2
edk2-ae7b6df816e913394a7f11264f24953658ff34ba.zip
BaseTools: Support Structure PCD value assignment in DEC/DSC
https://bugzilla.tianocore.org/show_bug.cgi?id=542 This is pure BaseTools enhancement to support PCD with one structure. User can specify PCD value based on its structure field. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/ToolDefClassObject.py')
-rw-r--r--BaseTools/Source/Python/Common/ToolDefClassObject.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Common/ToolDefClassObject.py b/BaseTools/Source/Python/Common/ToolDefClassObject.py
index c65cb8a36d..dc90b4783f 100644
--- a/BaseTools/Source/Python/Common/ToolDefClassObject.py
+++ b/BaseTools/Source/Python/Common/ToolDefClassObject.py
@@ -246,7 +246,6 @@ class ToolDefClassObject(object):
Value = Value.replace(Ref, self.MacroDictionary[Ref])
else:
Value = Value.replace(Ref, self.MacroDictionary[Ref.upper()])
-
MacroReference = gMacroRefPattern.findall(Value)
for Ref in MacroReference:
if Ref not in self.MacroDictionary: