summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/BPDG
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2017-12-22 20:23:21 +0800
committerLiming Gao <liming.gao@intel.com>2017-12-25 11:05:51 +0800
commit0b6c5954e1d9a17e01eee7d5ef840a5b4790e2e8 (patch)
treefdf9727a45a08ae8d6e59022975d33665581fca8 /BaseTools/Source/Python/BPDG
parentb23957242c01ae776af86f91ebb35827422dec60 (diff)
downloadedk2-0b6c5954e1d9a17e01eee7d5ef840a5b4790e2e8.tar.gz
edk2-0b6c5954e1d9a17e01eee7d5ef840a5b4790e2e8.tar.bz2
edk2-0b6c5954e1d9a17e01eee7d5ef840a5b4790e2e8.zip
BaseTools: Generate correct VPD PCD value to store the default setting
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Feng Bob C <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/BPDG')
-rw-r--r--BaseTools/Source/Python/BPDG/GenVpd.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/BPDG/GenVpd.py b/BaseTools/Source/Python/BPDG/GenVpd.py
index 4ff464756f..9861e7da68 100644
--- a/BaseTools/Source/Python/BPDG/GenVpd.py
+++ b/BaseTools/Source/Python/BPDG/GenVpd.py
@@ -503,6 +503,14 @@ class GenVPD :
#
self.PcdUnknownOffsetList.sort(lambda x, y: cmp(x.PcdBinSize, y.PcdBinSize))
+ index =0
+ for pcd in self.PcdUnknownOffsetList:
+ index += 1
+ if pcd.PcdCName == ".".join(("gEfiMdeModulePkgTokenSpaceGuid","PcdNvStoreDefaultValueBuffer")):
+ if index != len(self.PcdUnknownOffsetList):
+ for i in range(len(self.PcdUnknownOffsetList) - index):
+ self.PcdUnknownOffsetList[index+i -1 ] , self.PcdUnknownOffsetList[index+i] = self.PcdUnknownOffsetList[index+i] , self.PcdUnknownOffsetList[index+i -1]
+
#
# Process all Offset value are "*"
#