diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-03-07 14:14:43 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-03-09 16:34:37 +0800 |
commit | 8565b5829c1f30408020a4adb37074dba5492378 (patch) | |
tree | 690c44ca41011b766edfbe50e4cba0a52de1eede /BaseTools/Source/Python/build/BuildReport.py | |
parent | 0f228f19fb40ffe60b13962ff639917435c562a9 (diff) | |
download | edk2-8565b5829c1f30408020a4adb37074dba5492378.tar.gz edk2-8565b5829c1f30408020a4adb37074dba5492378.tar.bz2 edk2-8565b5829c1f30408020a4adb37074dba5492378.zip |
BaseTools: Update --pcd parser to support flexible pcd format
This patch update --pcd parser to support flexible pcd format.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build/BuildReport.py')
-rw-r--r-- | BaseTools/Source/Python/build/BuildReport.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/BuildReport.py b/BaseTools/Source/Python/build/BuildReport.py index 89bdfa1d86..d555dce9b3 100644 --- a/BaseTools/Source/Python/build/BuildReport.py +++ b/BaseTools/Source/Python/build/BuildReport.py @@ -977,7 +977,9 @@ class PcdReport(object): if GlobalData.BuildOptionPcd:
for pcd in GlobalData.BuildOptionPcd:
if (Pcd.TokenSpaceGuidCName, Pcd.TokenCName) == (pcd[0], pcd[1]):
- PcdValue = pcd[2]
+ if pcd[2]:
+ continue
+ PcdValue = pcd[3]
Pcd.DefaultValue = PcdValue
BuildOptionMatch = True
break
|