mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
29c2de1272
commit
2cfb9d0f1a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue