summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2019-02-19 21:29:49 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-02-22 15:47:15 +0800
commit2cfb9d0f1a10546d15bcf9979407988fc6904bd6 (patch)
tree72b23aeff0072c691146598608e6b00f60f8cc87 /BaseTools/Source/Python/Workspace
parent29c2de1272f51d35594990eacbe9cc619c7ff519 (diff)
downloadedk2-2cfb9d0f1a10546d15bcf9979407988fc6904bd6.tar.gz
edk2-2cfb9d0f1a10546d15bcf9979407988fc6904bd6.tar.bz2
edk2-2cfb9d0f1a10546d15bcf9979407988fc6904bd6.zip
BaseTools: Fix a bug about Structure PCD
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1535 If there is Hii Structure Pcd, build will fail, root cause is that there is an incorrect variable access method used in code. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace')
-rw-r--r--BaseTools/Source/Python/Workspace/DscBuildData.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py
index 7221946062..5e7d7dcd63 100644
--- a/BaseTools/Source/Python/Workspace/DscBuildData.py
+++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
@@ -2396,7 +2396,7 @@ class DscBuildData(PlatformBuildClassObject):
for defaultstore in skuinfo.DefaultStoreDict:
pcddscrawdefaultvalue = self.GetPcdDscRawDefaultValue(Pcd, skuname, defaultstore)
if pcddscrawdefaultvalue:
- Value = skuinfo[defaultstore]
+ Value = skuinfo.DefaultStoreDict[defaultstore]
if "{CODE(" in Value:
realvalue = Value.strip()[6:-2] # "{CODE(").rstrip(")}"
CApp += "static %s %s_%s_%s_%s_Value%s = %s;\n" % (Pcd.BaseDatumType,Pcd.TokenSpaceGuidCName,Pcd.TokenCName,skuname,defaultstore,Demesion,realvalue)