datum = pcdBuildData.getValue();\r
maxDatumSize = pcdBuildData.getMaxDatumSize();\r
\r
+ if ((pcdType == Token.PCD_TYPE.FEATURE_FLAG) &&\r
+ (datumType != Token.DATUM_TYPE.BOOLEAN)){\r
+ exceptionString = String.format("[FPD file error] For PCD %s in module %s, the PCD type is FEATRUE_FLAG but "+\r
+ "datum type of this PCD entry is not BOOLEAN!",\r
+ pcdBuildData.getCName(),\r
+ moduleName);\r
+ throw new EntityException(exceptionString);\r
+ }\r
+\r
//\r
// Check <TokenSpaceGuid> is exist? In future, because all schema verification will tools\r
// will check that, following checking code could be removed.\r