mirror of https://github.com/acidanthera/audk.git
BaseTools: Add comments for the Structure Pcd definition in PcdValueInit.c file
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
e6bf3cfd50
commit
6a10344080
|
@ -119,6 +119,8 @@ class StructurePcd(PcdClassObject):
|
||||||
self.SkuOverrideValues = collections.OrderedDict({})
|
self.SkuOverrideValues = collections.OrderedDict({})
|
||||||
self.FlexibleFieldName = None
|
self.FlexibleFieldName = None
|
||||||
self.StructName = None
|
self.StructName = None
|
||||||
|
self.PcdDefineLineNo = 0
|
||||||
|
self.PkgPath = ""
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return self.TypeName
|
return self.TypeName
|
||||||
|
|
||||||
|
@ -171,6 +173,8 @@ class StructurePcd(PcdClassObject):
|
||||||
self.SkuOverrideValues = PcdObject.SkuOverrideValues if PcdObject.SkuOverrideValues else self.SkuOverrideValues
|
self.SkuOverrideValues = PcdObject.SkuOverrideValues if PcdObject.SkuOverrideValues else self.SkuOverrideValues
|
||||||
self.FlexibleFieldName = PcdObject.FlexibleFieldName if PcdObject.FlexibleFieldName else self.FlexibleFieldName
|
self.FlexibleFieldName = PcdObject.FlexibleFieldName if PcdObject.FlexibleFieldName else self.FlexibleFieldName
|
||||||
self.StructName = PcdObject.DatumType if PcdObject.DatumType else self.StructName
|
self.StructName = PcdObject.DatumType if PcdObject.DatumType else self.StructName
|
||||||
|
self.PcdDefineLineNo = PcdObject.PcdDefineLineNo if PcdObject.PcdDefineLineNo else self.PcdDefineLineNo
|
||||||
|
self.PkgPath = PcdObject.PkgPath if PcdObject.PkgPath else self.PkgPath
|
||||||
|
|
||||||
## LibraryClassObject
|
## LibraryClassObject
|
||||||
#
|
#
|
||||||
|
|
|
@ -383,6 +383,8 @@ class DecBuildData(PackageBuildClassObject):
|
||||||
struct_pcd.copy(item)
|
struct_pcd.copy(item)
|
||||||
struct_pcd.TokenValue = struct_pcd.TokenValue.strip("{").strip()
|
struct_pcd.TokenValue = struct_pcd.TokenValue.strip("{").strip()
|
||||||
struct_pcd.TokenSpaceGuidCName, struct_pcd.TokenCName = pcdname.split(".")
|
struct_pcd.TokenSpaceGuidCName, struct_pcd.TokenCName = pcdname.split(".")
|
||||||
|
struct_pcd.PcdDefineLineNo = LineNo
|
||||||
|
struct_pcd.PkgPath = self.MetaFile.File
|
||||||
else:
|
else:
|
||||||
struct_pcd.AddDefaultValue(item.TokenCName, item.DefaultValue,self.MetaFile.File,LineNo)
|
struct_pcd.AddDefaultValue(item.TokenCName, item.DefaultValue,self.MetaFile.File,LineNo)
|
||||||
|
|
||||||
|
|
|
@ -1295,7 +1295,7 @@ class DscBuildData(PlatformBuildClassObject):
|
||||||
CApp = CApp + ' CHAR8 *Value;\n'
|
CApp = CApp + ' CHAR8 *Value;\n'
|
||||||
CApp = CApp + ' UINT32 OriginalSize;\n'
|
CApp = CApp + ' UINT32 OriginalSize;\n'
|
||||||
CApp = CApp + ' VOID *OriginalPcd;\n'
|
CApp = CApp + ' VOID *OriginalPcd;\n'
|
||||||
CApp = CApp + ' %s *Pcd;\n' % (Pcd.DatumType)
|
CApp = CApp + ' %s *Pcd; // From %s Line %d \n' % (Pcd.DatumType, Pcd.PkgPath, Pcd.PcdDefineLineNo)
|
||||||
CApp = CApp + '\n'
|
CApp = CApp + '\n'
|
||||||
|
|
||||||
Pcd.DefaultValue = Pcd.DefaultValue.strip()
|
Pcd.DefaultValue = Pcd.DefaultValue.strip()
|
||||||
|
|
Loading…
Reference in New Issue