summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/ResetVector/Vtf0
diff options
context:
space:
mode:
authorAshraf Ali S <ashraf.ali.s@intel.com>2021-07-23 14:02:23 +0530
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-09-09 13:16:48 +0000
commitcf7c65059202e7858fbc00ce1f163ee243947e08 (patch)
tree2d977917e3ac1ad7ba94e84052bcf79e752a65e3 /UefiCpuPkg/ResetVector/Vtf0
parent6c7d6d4a5e0b69a52e65785f308be0e8ad5fcc96 (diff)
downloadedk2-cf7c65059202e7858fbc00ce1f163ee243947e08.tar.gz
edk2-cf7c65059202e7858fbc00ce1f163ee243947e08.tar.bz2
edk2-cf7c65059202e7858fbc00ce1f163ee243947e08.zip
UefiCpuPkg: ResetVector Tool additional debug prints
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3506 Before executing the nasm command, added print statement to know what commands are executing. before printing the output file need check the status of command which is executed. if the status is 0 then only print the output file name. Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Debkumar De <debkumar.de@intel.com> Cc: Harry Han <harry.han@intel.com> Cc: Catharine West <catharine.west@intel.com> Cc: Sangeetha V <sangeetha.v@intel.com> Signed-off-by: Ashraf Ali S <ashraf.ali.s@intel.com>
Diffstat (limited to 'UefiCpuPkg/ResetVector/Vtf0')
-rw-r--r--UefiCpuPkg/ResetVector/Vtf0/Build.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/UefiCpuPkg/ResetVector/Vtf0/Build.py b/UefiCpuPkg/ResetVector/Vtf0/Build.py
index 55f4edd87b..b791d32762 100644
--- a/UefiCpuPkg/ResetVector/Vtf0/Build.py
+++ b/UefiCpuPkg/ResetVector/Vtf0/Build.py
@@ -32,9 +32,12 @@ for arch in ('ia32', 'x64'):
'-o', output,
'Vtf0.nasmb',
)
+ print(f"Command : {' '.join(commandLine)}")
ret = RunCommand(commandLine)
+ if ret != 0:
+ print(f"something went wrong while executing {commandLine[-1]}")
+ sys.exit()
print('\tASM\t' + output)
- if ret != 0: sys.exit(ret)
commandLine = (
'python',