]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg: ResetVector Tool additional debug prints
authorAshraf Ali S <ashraf.ali.s@intel.com>
Fri, 23 Jul 2021 08:32:23 +0000 (14:02 +0530)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 9 Sep 2021 13:16:48 +0000 (13:16 +0000)
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>
UefiCpuPkg/ResetVector/Vtf0/Build.py

index 55f4edd87be1c86bd40dee4bbf50cb08a6b80cfe..b791d32762791ca04d4c2f337424fa8b1c30a597 100644 (file)
@@ -32,9 +32,12 @@ for arch in ('ia32', 'x64'):
             '-o', output,\r
             'Vtf0.nasmb',\r
             )\r
+        print(f"Command : {' '.join(commandLine)}")\r
         ret = RunCommand(commandLine)\r
+        if ret != 0:\r
+            print(f"something went wrong while executing {commandLine[-1]}")\r
+            sys.exit()\r
         print('\tASM\t' + output)\r
-        if ret != 0: sys.exit(ret)\r
 \r
         commandLine = (\r
             'python',\r