BaseTools: Fix a bug for --pcd used in ConditionalStatement calculate
Move the GlobalData.BuildOptionPcd before FdfParser() function and add
type check for Pcd item.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
(cherry picked from commit 705ed563de
)
This commit is contained in:
@ -927,6 +927,8 @@ class FdfParser:
|
||||
MacroDict.update(GlobalData.gCommandLineDefines)
|
||||
if GlobalData.BuildOptionPcd:
|
||||
for Item in GlobalData.BuildOptionPcd:
|
||||
if type(Item) is tuple:
|
||||
continue
|
||||
PcdName, TmpValue = Item.split("=")
|
||||
TmpValue = BuildOptionValue(TmpValue, {})
|
||||
MacroDict[PcdName.strip()] = TmpValue
|
||||
|
Reference in New Issue
Block a user