BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1718
BaseTools\Scripts\ConvertFceToStructurePcd.py This script is for sorting the PCD order them base on PcdName, then base on Pcd field name. Cc: Bob Feng <bob.c.f...@intel.com> Cc: Liming Gao <liming....@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux....@intel.com> --- BaseTools/Scripts/ConvertFceToStructurePcd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BaseTools/Scripts/ConvertFceToStructurePcd.py b/BaseTools/Scripts/ConvertFceToStructurePcd.py index c65cb555af..89e6a727a2 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): -- 2.14.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#39058): https://edk2.groups.io/g/devel/message/39058 Mute This Topic: https://groups.io/mt/31185385/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
<<attachment: winmail.dat>>