git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@559
6f19259b-4bc3-4df7-8a09-
765794883524
datum = pcdBuildData.getValue();\r
maxDatumSize = pcdBuildData.getMaxDatumSize();\r
\r
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
//\r
// Check <TokenSpaceGuid> is exist? In future, because all schema verification will tools\r
// will check that, following checking code could be removed.\r