- //\r
- // Check datum is equal the datum in dynamic information.\r
- // For dynamic PCD, you can do not write <Value> in sperated every <PcdBuildDefinition> in different <ModuleSA>,\r
- // But if you write, the <Value> must be same as the value in <DynamicPcdBuildDefinitions>.\r
- //\r
- if (!token.isSkuEnable() &&\r
- (token.getDefaultSku().type == DynamicTokenValue.VALUE_TYPE.DEFAULT_TYPE) &&\r
- (datum != null)) {\r
- if (!datum.equalsIgnoreCase(token.getDefaultSku().value)) {\r
- exceptionString = String.format("In the FPD file, for dynamic PCD %s in module %s, the datum in <ModuleSA> is "+\r
- "not equal to the datum type in <DynamicPcdBuildDefinitions>. This is "+\r
- "illega! You cannot set <Value> in <ModuleSA> for a dynamic PCD!",\r
- token.cName,\r
- moduleName);\r
- putError(exceptionString);\r
- //\r
- // Do not break preprocess, continues to analysis.\r
- // All errors will be summary to be shown.\r
- // \r
- continue;\r
- }\r
- }\r
-\r