|
From: <kl...@us...> - 2010-05-25 02:15:30
|
Revision: 1975
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=1975&view=rev
Author: klu2
Date: 2010-05-25 02:15:24 +0000 (Tue, 25 May 2010)
Log Message:
-----------
Fix autogen bugs for VPD VOID* type PCD.
The root cause is VOID* type PCD is a special PCD and need generate STRING_HEADER and data array in PCD database, so build tool will treat PCD_TYPE_STRING as a PCD type same as PCD_TYPE_DYNAMIC, PCD_TYPE_VPD, etc.
But for VPD?\226?\128?\153s pcd, the default value is no need to be generated in Pcd database, so build tool should skip string operation for VPD type PCD.
Modified Paths:
--------------
trunk/BaseTools/Source/Python/AutoGen/GenC.py
Modified: trunk/BaseTools/Source/Python/AutoGen/GenC.py
===================================================================
--- trunk/BaseTools/Source/Python/AutoGen/GenC.py 2010-05-25 01:39:37 UTC (rev 1974)
+++ trunk/BaseTools/Source/Python/AutoGen/GenC.py 2010-05-25 02:15:24 UTC (rev 1975)
@@ -1262,7 +1262,9 @@
VariableHeadValueList = []
Pcd.InitString = 'UNINIT'
- if Pcd.DatumType == 'VOID*':
+ if Pcd.Type in ["DynamicVpd", "DynamicExVpd"]:
+ Pcd.TokenTypeList = ['PCD_TYPE_VPD']
+ elif Pcd.DatumType == 'VOID*':
Pcd.TokenTypeList = ['PCD_TYPE_STRING']
elif Pcd.DatumType == 'BOOLEAN':
Pcd.TokenTypeList = ['PCD_DATUM_TYPE_UINT8']
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|