X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FPcdTools%2Forg%2Ftianocore%2Fpcd%2Faction%2FPlatformPcdPreprocessAction.java;h=9343c1689d09365a4ab0205d48ecae4b17d056ee;hp=c432b8c3eb025ce26fb1ceb56ceeed9939a0366d;hb=f889b75c5fbbbb549c9299b7193957e6e59b636d;hpb=94f446c081c1cd2cbc5f2b878a155cc2b59aa044 diff --git a/Tools/Source/PcdTools/org/tianocore/pcd/action/PlatformPcdPreprocessAction.java b/Tools/Source/PcdTools/org/tianocore/pcd/action/PlatformPcdPreprocessAction.java index c432b8c3eb..9343c1689d 100644 --- a/Tools/Source/PcdTools/org/tianocore/pcd/action/PlatformPcdPreprocessAction.java +++ b/Tools/Source/PcdTools/org/tianocore/pcd/action/PlatformPcdPreprocessAction.java @@ -363,29 +363,6 @@ public abstract class PlatformPcdPreprocessAction { } if (token.isDynamicPCD) { - // - // Check datum is equal the datum in dynamic information. - // For dynamic PCD, you can do not write in sperated every in different , - // But if you write, the must be same as the value in . - // - if (!token.isSkuEnable() && - (token.getDefaultSku().type == DynamicTokenValue.VALUE_TYPE.DEFAULT_TYPE) && - (datum != null)) { - if (!datum.equalsIgnoreCase(token.getDefaultSku().value)) { - exceptionString = String.format("In the FPD file, for dynamic PCD %s in module %s, the datum in is "+ - "not equal to the datum type in . This is "+ - "illega! You cannot set in for a dynamic PCD!", - token.cName, - moduleName); - putError(exceptionString); - // - // Do not break preprocess, continues to analysis. - // All errors will be summary to be shown. - // - continue; - } - } - if ((maxDatumSize != 0) && (maxDatumSize != token.datumSize)){ exceptionString = String.format("In the FPD file, for dynamic PCD %s in module %s, the max datum size is %d which "+ @@ -595,20 +572,6 @@ public abstract class PlatformPcdPreprocessAction { token.skuData.add(skuInstance); - // - // Judege wether is same of datum between module's information - // and dynamic information. - // - if (datum != null) { - if ((skuInstance.id == 0) && - !datum.toString().equalsIgnoreCase(skuInfoList.get(index).getValue().toString())) { - exceptionString = "In the FPD file, for dynamic PCD " + token.cName + ", the value in module " + moduleName + " is " + datum.toString() + " but the "+ - "value of SKU 0 data in is " + skuInstance.value.value + ". They must be same!"+ - " Also, you cannot define a value for a dynamic PCD in the section!"; - putError(exceptionString); - return null; - } - } continue; }