public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH edk2-platforms\devel-MinPlatform] MinPlatformPkg: Enable PatchFv tool supports PCD value format in build report
@ 2018-07-06  7:45 Liming Gao
  2018-07-06  7:45 ` [PATCH edk2-platforms\devel-MinPlatform] MinPlatform: Update batch file to call python.exe Liming Gao
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Liming Gao @ 2018-07-06  7:45 UTC (permalink / raw)
  To: edk2-devel; +Cc: Jiewen Yao

PCD value in build report shows HEX and DEC both. PatchFv tool only requires
one value.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
---
 Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBfv.py     | 2 +-
 Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBinFv.py   | 2 +-
 Platform/Intel/MinPlatformPkg/Tools/PatchFv/RebaseBinFv.py  | 2 +-
 Platform/Intel/MinPlatformPkg/Tools/PatchFv/SyncBinFvInf.py | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBfv.py b/Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBfv.py
index 73c18c5..bb9d280 100644
--- a/Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBfv.py
+++ b/Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBfv.py
@@ -101,7 +101,7 @@ class FileChecker:
                         if (cmp (splitLine[0], "FIXED") == 0) or (cmp (splitLine[0], "PATCH") == 0):
                             SplitLine = splitLine[1].strip()[1:].split(")", 1)
                             Type = SplitLine[0]
-                            Value = SplitLine[1].strip()[1:].strip()
+                            Value = SplitLine[1].strip()[1:].strip().split()[0]
                             print "  Type - (" + Type + "), Value - (" + Value + ")"
                             return [Value, Type]
         return ["", ""]
diff --git a/Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBinFv.py b/Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBinFv.py
index f5cb427..e1facd1 100644
--- a/Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBinFv.py
+++ b/Platform/Intel/MinPlatformPkg/Tools/PatchFv/PatchBinFv.py
@@ -209,7 +209,7 @@ class FileChecker:
                         if (cmp (splitLine[0], "FIXED") == 0) or (cmp (splitLine[0], "PATCH") == 0):
                             SplitLine = splitLine[1].strip()[1:].split(")", 1)
                             Type = SplitLine[0]
-                            Value = SplitLine[1].strip()[1:].strip()
+                            Value = SplitLine[1].strip()[1:].strip().split()[0]
                             print "  Type - (" + Type + "), Value - (" + Value + ")"
                             return [Value, Type]
         return ["", ""]
diff --git a/Platform/Intel/MinPlatformPkg/Tools/PatchFv/RebaseBinFv.py b/Platform/Intel/MinPlatformPkg/Tools/PatchFv/RebaseBinFv.py
index 5463a93..4d194b3 100644
--- a/Platform/Intel/MinPlatformPkg/Tools/PatchFv/RebaseBinFv.py
+++ b/Platform/Intel/MinPlatformPkg/Tools/PatchFv/RebaseBinFv.py
@@ -643,7 +643,7 @@ class FileChecker:
                         if (cmp (splitLine[0], "FIXED") == 0) or (cmp (splitLine[0], "PATCH") == 0):
                             SplitLine = splitLine[1].strip()[1:].split(")", 1)
                             Type = SplitLine[0]
-                            Value = SplitLine[1].strip()[1:].strip()
+                            Value = SplitLine[1].strip()[1:].strip().split()[0]
                             print "  Type - (" + Type + "), Value - (" + Value + ")"
                             return [Value, Type]
         return ["", ""]
diff --git a/Platform/Intel/MinPlatformPkg/Tools/PatchFv/SyncBinFvInf.py b/Platform/Intel/MinPlatformPkg/Tools/PatchFv/SyncBinFvInf.py
index 57b6724..19c6e04 100644
--- a/Platform/Intel/MinPlatformPkg/Tools/PatchFv/SyncBinFvInf.py
+++ b/Platform/Intel/MinPlatformPkg/Tools/PatchFv/SyncBinFvInf.py
@@ -423,7 +423,7 @@ class FileChecker:
                         if (cmp (splitLine[0], "FIXED") == 0) or (cmp (splitLine[0], "PATCH") == 0):
                             SplitLine = splitLine[1].strip()[1:].split(")", 1)
                             Type = SplitLine[0]
-                            Value = SplitLine[1].strip()[1:].strip()
+                            Value = SplitLine[1].strip()[1:].strip().split()[0]
                             print "  Type - (" + Type + "), Value - (" + Value + ")"
                             return [Value, Type]
         return ["", ""]
-- 
2.10.0.windows.1



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

end of thread, other threads:[~2018-07-06 14:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-06  7:45 [PATCH edk2-platforms\devel-MinPlatform] MinPlatformPkg: Enable PatchFv tool supports PCD value format in build report Liming Gao
2018-07-06  7:45 ` [PATCH edk2-platforms\devel-MinPlatform] MinPlatform: Update batch file to call python.exe Liming Gao
2018-07-06 14:57   ` Yao, Jiewen
2018-07-06  7:45 ` [PATCH edk2-platforms\devel-MinPlatform] MinPlatform: update ReadMe.md to correct branch name Liming Gao
2018-07-06 14:56   ` Yao, Jiewen
2018-07-06  7:45 ` [PATCH edk2-platforms\devel-MinPlatform] PurleyOpenBoardPkg: Remove unnecessary Link16 and IASL override Liming Gao
2018-07-06 14:56   ` Yao, Jiewen
2018-07-06 14:57 ` [PATCH edk2-platforms\devel-MinPlatform] MinPlatformPkg: Enable PatchFv tool supports PCD value format in build report Yao, Jiewen

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