public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH V2] BaseTools:update ConvertFceToStructurePcd.py with the char order PCD name.
@ 2019-04-15  8:55 Fan, ZhijuX
  2019-04-16  8:02 ` Liming Gao
  0 siblings, 1 reply; 2+ messages in thread
From: Fan, ZhijuX @ 2019-04-15  8:55 UTC (permalink / raw)
  To: devel@edk2.groups.io; +Cc: Gao, Liming, Feng, Bob C

[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]

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: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@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


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 3986 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH V2] BaseTools:update ConvertFceToStructurePcd.py with the char order PCD name.
  2019-04-15  8:55 [PATCH V2] BaseTools:update ConvertFceToStructurePcd.py with the char order PCD name Fan, ZhijuX
@ 2019-04-16  8:02 ` Liming Gao
  0 siblings, 0 replies; 2+ messages in thread
From: Liming Gao @ 2019-04-16  8:02 UTC (permalink / raw)
  To: Fan, ZhijuX, devel@edk2.groups.io; +Cc: Feng, Bob C

Reviewed-by: Liming Gao <liming.gao@intel.com>

>-----Original Message-----
>From: Fan, ZhijuX
>Sent: Monday, April 15, 2019 4:55 PM
>To: devel@edk2.groups.io
>Cc: Gao, Liming <liming.gao@intel.com>; Feng, Bob C <bob.c.feng@intel.com>
>Subject: [PATCH V2] BaseTools:update ConvertFceToStructurePcd.py with the
>char order PCD name.
>
>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: Liming Gao <liming.gao@intel.com>
>Contributed-under: TianoCore Contribution Agreement 1.1
>Signed-off-by: Zhiju.Fan <zhijux.fan@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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-16  8:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-15  8:55 [PATCH V2] BaseTools:update ConvertFceToStructurePcd.py with the char order PCD name Fan, ZhijuX
2019-04-16  8:02 ` Liming Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox