V2: BaseTools generates the real size for the intital value of VOID* PCD. Update BasePcdLibNull library instance to add two new PcdApi.
V1: PcdLib LibPcdGetSize() and LibPcdGetExSize() are type specific API. New generic PcdGetSize() API will be added to reterieve the size of PCD value. Like PcdGetValue(), it supports all PCD types and all PCD data types. BaseTools generates PCD size macros in AutoGen code. MdePkg PcdLib adds PcdGetSize() APIs to match those generated macros. Modules use PcdGetSize() API to replace LibPcdGetSize() and LibPcdGetExSize() APIs. Liming Gao (6): BaseTools: Generate macro for the size of PCD value BaseTools: Fix AutoGen issue for Patchable VOID* PCD. BaseTools: Update SetPcdPtr in AutoGen Code MdePkg: Add four PcdGetSize() API in PcdLib MdePkg: Add two PcdApi for Patch VOID* PCD set operation. SecurityPkg: Use PcdGetSize to get the size of VOID* PCD value. BaseTools/Source/Python/AutoGen/GenC.py | 90 +++++++++++-- MdePkg/Include/Library/PcdLib.h | 141 ++++++++++++++++++++- MdePkg/Library/BasePcdLibNull/PcdLib.c | 120 +++++++++++++++++- MdePkg/Library/DxePcdLib/DxePcdLib.c | 119 ++++++++++++++++- MdePkg/Library/PeiPcdLib/PeiPcdLib.c | 119 ++++++++++++++++- .../DxeRsa2048Sha256GuidedSectionExtractLib.c | 4 +- .../DxeRsa2048Sha256GuidedSectionExtractLib.inf | 4 +- .../PeiRsa2048Sha256GuidedSectionExtractLib.c | 4 +- .../PeiRsa2048Sha256GuidedSectionExtractLib.inf | 2 +- 9 files changed, 567 insertions(+), 36 deletions(-) -- 1.9.5.msysgit.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel