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>
This commit is contained in:
parent
0eccea3fbe
commit
cfb29d2bda
|
@ -506,6 +506,8 @@ class mainprocess(object):
|
||||||
for i in range(len(info_list)-1,-1,-1):
|
for i in range(len(info_list)-1,-1,-1):
|
||||||
if len(info_list[i]) == 0:
|
if len(info_list[i]) == 0:
|
||||||
info_list.remove(info_list[i])
|
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
|
return keys,title_all,info_list,header_list,inf_list
|
||||||
|
|
||||||
def remove_bracket(self,List):
|
def remove_bracket(self,List):
|
||||||
|
@ -517,6 +519,9 @@ class mainprocess(object):
|
||||||
List[List.index(i)][i.index(j)] = "|".join(tmp)
|
List[List.index(i)][i.index(j)] = "|".join(tmp)
|
||||||
else:
|
else:
|
||||||
List[List.index(i)][i.index(j)] = j
|
List[List.index(i)][i.index(j)] = j
|
||||||
|
for i in List:
|
||||||
|
if type(i) == type([0,0]):
|
||||||
|
i.sort()
|
||||||
return List
|
return List
|
||||||
|
|
||||||
def write_all(self):
|
def write_all(self):
|
||||||
|
|
Loading…
Reference in New Issue