]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools: Report more clear error message when PCD type mismatch
authorYunhua Feng <yunhuax.feng@intel.com>
Wed, 16 May 2018 05:59:59 +0000 (13:59 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Tue, 22 May 2018 11:35:28 +0000 (19:35 +0800)
commita253d217ee3477fde46cadba0dfe364f9a826694
treefa8d64dc345c1e1d1f427e989f2a520d8e6e43ae
parent5a444dfd7c0039b33f0c26e1294297fb7e358f60
BaseTools: Report more clear error message when PCD type mismatch

Error message is not clear when PCD type defined in driver's Library
is different with PCD type defined in DSC components or PCD type
defined in DSC PCD section.

Case as below:
DSC:
[PcdsFixedAtBuild]
PcdToken.PcdCName | "A"
[Components]
 TestPkg/TestDriver.inf {
  <PcdsPatchableInModule>
    PcdToken.PcdCName | "B"
 }
Library:
[Pcd]
 PcdToken.PcdCName

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/AutoGen/AutoGen.py