summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFan, ZhijuX <zhijux.fan@intel.com>2019-04-15 16:55:01 +0800
committerLiming Gao <liming.gao@intel.com>2019-04-18 08:55:21 +0800
commitcfb29d2bda57baa344bded40cf12af81b13e8a40 (patch)
tree7bf08e92801907a4ccec5981157a0cabaf3c4e2a
parent0eccea3fbe2f6d4999d972d9310d4f2717f5100c (diff)
downloadedk2-cfb29d2bda57baa344bded40cf12af81b13e8a40.tar.gz
edk2-cfb29d2bda57baa344bded40cf12af81b13e8a40.tar.bz2
edk2-cfb29d2bda57baa344bded40cf12af81b13e8a40.zip
BaseTools:update ConvertFceToStructurePcd.py with the char order PCD name.
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1718 BaseTools\Scripts\ConvertFceToStructurePcd.py Update script to sort the PCD order base on PcdName, then base on Pcd field name. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r--BaseTools/Scripts/ConvertFceToStructurePcd.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/BaseTools/Scripts/ConvertFceToStructurePcd.py b/BaseTools/Scripts/ConvertFceToStructurePcd.py
index c65cb555af..10f19dbe2f 100644
--- a/BaseTools/Scripts/ConvertFceToStructurePcd.py
+++ b/BaseTools/Scripts/ConvertFceToStructurePcd.py
@@ -506,6 +506,8 @@ class mainprocess(object):
for i in range(len(info_list)-1,-1,-1):
if len(info_list[i]) == 0:
info_list.remove(info_list[i])
+ for i in (inf_list, title_all, header_list):
+ i.sort()
return keys,title_all,info_list,header_list,inf_list
def remove_bracket(self,List):
@@ -517,6 +519,9 @@ class mainprocess(object):
List[List.index(i)][i.index(j)] = "|".join(tmp)
else:
List[List.index(i)][i.index(j)] = j
+ for i in List:
+ if type(i) == type([0,0]):
+ i.sort()
return List
def write_all(self):