summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYunhua Feng <fengyunhua@byosoft.com.cn>2020-12-17 09:09:51 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-12-23 02:33:36 +0000
commitd15d0d3d8aee1c7d5dab7b636601370061b32612 (patch)
tree4069b6d6a9a2c8f8ba388acb9ee8803ca47fc7e5
parentab060128768b230543eca97c5d72a44f3e5ae2e5 (diff)
downloadedk2-d15d0d3d8aee1c7d5dab7b636601370061b32612.tar.gz
edk2-d15d0d3d8aee1c7d5dab7b636601370061b32612.tar.bz2
edk2-d15d0d3d8aee1c7d5dab7b636601370061b32612.zip
BaseTools: Should always define PCD TOKEN value as Zero for static PCD
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3120 FixedAtBuild, PatchableInModule and FeatureFlag PCD don't use PCD TOKEN. Their PCD TOKEN value can always be zero. AutoGen.h will not be changed when static PCD is added or removed. Dynamic PCD add or remove will still cause dynamic PCD token value be changed. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Yuwei Chen <yuwei.chen@intel.com> Signed-off-by: Yunhua Feng <fengyunhua@byosoft.com.cn> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
-rw-r--r--BaseTools/Source/Python/AutoGen/PlatformAutoGen.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py b/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
index c001828937..7d8e7b3c7c 100644
--- a/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
+++ b/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
@@ -1037,8 +1037,7 @@ class PlatformAutoGen(AutoGen):
TokenNumber += 1
for Pcd in self.NonDynamicPcdList:
- RetVal[Pcd.TokenCName, Pcd.TokenSpaceGuidCName] = TokenNumber
- TokenNumber += 1
+ RetVal[Pcd.TokenCName, Pcd.TokenSpaceGuidCName] = 0
return RetVal
@cached_property