]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/AutoGen/GenPcdDb.py
BaseTools: add new command line option to support override PCD value
authorYonghong Zhu <yonghong.zhu@intel.com>
Thu, 25 Feb 2016 08:13:31 +0000 (16:13 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 16 Mar 2016 02:35:52 +0000 (10:35 +0800)
commit763e8edf610b2ccf422986c81ee36b4733560cdb
treea573ad5457838675c3ff681cdf2fdf39d458de66
parentdb27e9f3d8f007bf26bcb8907ecab5b5f1fb8f24
BaseTools: add new command line option to support override PCD value

this patch add new feature to support override PCD value on the command
line. The value from the command line is the highest priority.
1.Add option(--pcd) to support both PcdName and TokenSpaceGuild.PcdName
2.For void* type PCD, use following format:
  cstring PCD: --pcd PcdName="string"
  unicodestring PCD: --pcd PcdName=L"string"
  CArray PCD: --pcd PcdName=B"{0x1, 0x2}"
3.Build Report, use *B to show the PCD value was overridden in the
command line.
4.Error Condition:
Report error if the PCD is not found
Report error if the PcdName is found under multiple different TokenSpaceGuid
Report error if PCD value syntax is incorrect
Report error if void* type PCD value exceed its max size

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools/Source/Python/AutoGen/GenC.py
BaseTools/Source/Python/AutoGen/GenPcdDb.py
BaseTools/Source/Python/Common/GlobalData.py
BaseTools/Source/Python/build/BuildReport.py
BaseTools/Source/Python/build/build.py