\r
if(Token.PCD_USAGE.UNKNOWN != token.isUsageInstanceExist(moduleName)) {\r
//\r
- // BUGBUG: It should *not* throw exception here. Becaues in MdePkg.fpd, \r
- // more than on BaseLib exist. But why? need confirmation.\r
+ // BUGBUG: It is legal that same base name exist in one FPD file. In furture\r
+ // we should use "Guid, Version, Package" and "Arch" to differ a module.\r
+ // So currently, warning should be disabled.\r
//\r
- //throw new EntityException(\r
- // "In module " + moduleName + " exist more than one PCD token " + token.cName\r
- // );\r
- ActionMessage.warning(this,\r
- "In module " + moduleName + " exist more than one PCD token " + token.cName\r
- );\r
+ //ActionMessage.warning(this,\r
+ // "In module " + moduleName + " exist more than one PCD token " + token.cName\r
+ // );\r
return null;\r
}\r
\r
// BUGBUG: in FPD, <defaultValue> should be defined as <Value>\r
//\r
token.datum = pcdBuildData.getDefaultValue();\r
+ token.tokenNumber = Integer.decode(pcdBuildData.getToken().getStringValue());\r
token.hiiEnabled = pcdBuildData.getHiiEnable();\r
token.variableGuid = Token.getGUIDFromSchemaObject(pcdBuildData.getVariableGuid());\r
token.variableName = pcdBuildData.getVariableName();\r