BaseTools: Fix two cases that use GUID CName as PCD Value
1. use CName format in components section:
[Components]
TestPkg/TestDriver.inf {
<PcdsFixedAtBuild>
PcdToken.PcdName |{GUID(TestGuid)}|VOID*|16
}
2. Use Guid CName format in INF and the Guid is defined in the DEC
file but not write in driver's [Guids] section.
PcdToken.PcdName | {GUID(TestGuid)}
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -1050,6 +1050,7 @@ class InfBuildData(ModuleBuildClassObject):
|
||||
#
|
||||
# "FixedAtBuild", "PatchableInModule", "FeatureFlag", "Dynamic", "DynamicEx"
|
||||
#
|
||||
self.Guids.update(Package.Guids)
|
||||
PcdType = self._PCD_TYPE_STRING_[Type]
|
||||
if Type == MODEL_PCD_DYNAMIC:
|
||||
Pcd.Pending = True
|
||||
|
||||
Reference in New Issue
Block a user