From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: zhijux.fan@intel.com) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by groups.io with SMTP; Mon, 15 Apr 2019 00:12:41 -0700 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Apr 2019 00:12:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,352,1549958400"; d="dat'59?scan'59,208,59";a="149480346" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 15 Apr 2019 00:12:40 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 15 Apr 2019 00:12:40 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 15 Apr 2019 00:12:40 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.164]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.42]) with mapi id 14.03.0415.000; Mon, 15 Apr 2019 15:12:18 +0800 From: "Fan, ZhijuX" To: "devel@edk2.groups.io" CC: "Gao, Liming" , "Feng, Bob C" Subject: [edk2][PATCH] BaseTools:update ConvertFceToStructurePcd.py output sequence. Thread-Topic: [edk2][PATCH] BaseTools:update ConvertFceToStructurePcd.py output sequence. Thread-Index: AdTzWfY+maOX8amgQiCjfTz6WDCY7w== Date: Mon, 15 Apr 2019 07:12:17 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: zhijux.fan@intel.com X-Groupsio-MsgNum: 39058 Content-Type: multipart/mixed; boundary="_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF4A6A5SHSMSX101ccrcor_" Content-Language: en-US --_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF4A6A5SHSMSX101ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=3D1718 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 Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan --- BaseTools/Scripts/ConvertFceToStructurePcd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BaseTools/Scripts/ConvertFceToStructurePcd.py b/BaseTools/Scri= pts/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]) =3D=3D 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 =20 def remove_bracket(self,List): @@ -517,6 +519,9 @@ class mainprocess(object): List[List.index(i)][i.index(j)] =3D "|".join(tmp) else: List[List.index(i)][i.index(j)] =3D j + for i in List: + if type(i) =3D=3D type([0,0]): + i.sort() return List =20 def write_all(self): --=20 2.14.1.windows.1 --_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF4A6A5SHSMSX101ccrcor_ Content-Disposition: attachment; filename="winmail.dat" Content-Transfer-Encoding: base64 Content-Type: application/ms-tnef; name="winmail.dat" eJ8+IgUEAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAAD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