mirror of https://github.com/acidanthera/audk.git
BaseTools:Build fail if define [DEPEX] in library inf
When define [DEPEX] in lib inf to build, it will fail and report" gUefiOvmfPkgTokenSpaceGuid.test1 used in [Depex] section should be used as FixedAtBuild type and VOID* datum type in the module." But we define this PCD to FixedAtBuild type and VOID* datum type indeed. DEC: [PcdsFixedAtBuild] gUefiOvmfPkgTokenSpaceGuid.test1 | {GUID("4096267b-da0a-42eb-b5eb-fef31d207cb4")}|VOID*|0x3c DSC: add pcd under lib inf as below: NULL|TestPkg/TestLib/TestLib.inf <PcdsFixedAtBuild> gUefiOvmfPkgTokenSpaceGuid.test1 | {GUID(gUefiOvmfPkgTokenSpaceGuid)} Lib inf:(TestPkg/TestLib/TestLib.inf) [Depex] gUefiOvmfPkgTokenSpaceGuid.test1 [FixedPcd] gUefiOvmfPkgTokenSpaceGuid.test1 Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
This commit is contained in:
parent
f747640bf3
commit
29c2de1272
|
@ -2892,10 +2892,16 @@ class ModuleAutoGen(AutoGen):
|
||||||
if '.' not in item:
|
if '.' not in item:
|
||||||
NewList.append(item)
|
NewList.append(item)
|
||||||
else:
|
else:
|
||||||
if item not in self.FixedVoidTypePcds:
|
FixedVoidTypePcds = {}
|
||||||
|
if item in self.FixedVoidTypePcds:
|
||||||
|
FixedVoidTypePcds = self.FixedVoidTypePcds
|
||||||
|
elif M in self.PlatformInfo.LibraryAutoGenList:
|
||||||
|
Index = self.PlatformInfo.LibraryAutoGenList.index(M)
|
||||||
|
FixedVoidTypePcds = self.PlatformInfo.LibraryAutoGenList[Index].FixedVoidTypePcds
|
||||||
|
if item not in FixedVoidTypePcds:
|
||||||
EdkLogger.error("build", FORMAT_INVALID, "{} used in [Depex] section should be used as FixedAtBuild type and VOID* datum type in the module.".format(item))
|
EdkLogger.error("build", FORMAT_INVALID, "{} used in [Depex] section should be used as FixedAtBuild type and VOID* datum type in the module.".format(item))
|
||||||
else:
|
else:
|
||||||
Value = self.FixedVoidTypePcds[item]
|
Value = FixedVoidTypePcds[item]
|
||||||
if len(Value.split(',')) != 16:
|
if len(Value.split(',')) != 16:
|
||||||
EdkLogger.error("build", FORMAT_INVALID,
|
EdkLogger.error("build", FORMAT_INVALID,
|
||||||
"{} used in [Depex] section should be used as FixedAtBuild type and VOID* datum type and 16 bytes in the module.".format(item))
|
"{} used in [Depex] section should be used as FixedAtBuild type and VOID* datum type and 16 bytes in the module.".format(item))
|
||||||
|
|
Loading…
Reference in New Issue