From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web09.5771.1627029659552778875 for ; Fri, 23 Jul 2021 01:40:59 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: ashraf.ali.s@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10053"; a="199103414" X-IronPort-AV: E=Sophos;i="5.84,263,1620716400"; d="scan'208";a="199103414" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2021 01:40:58 -0700 X-IronPort-AV: E=Sophos;i="5.84,263,1620716400"; d="scan'208";a="502434043" Received: from basfe001.gar.corp.intel.com ([10.66.244.207]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2021 01:40:56 -0700 From: "Ashraf Ali S" To: devel@edk2.groups.io Cc: Ashraf Ali S , Ray Ni , Rahul Kumar , Debkumar De , Harry Han , Catharine West , Sangeetha V Subject: [PATCH v2 2/2] UefiCpuPkg: ResetVector Tool additional debug prints Date: Fri, 23 Jul 2021 14:10:23 +0530 Message-Id: <20210723084023.22157-2-ashraf.ali.s@intel.com> X-Mailer: git-send-email 2.30.2.windows.1 In-Reply-To: <20210723084023.22157-1-ashraf.ali.s@intel.com> References: <20210723084023.22157-1-ashraf.ali.s@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Cc: Ray Ni Cc: Rahul Kumar Cc: Debkumar De Cc: Harry Han Cc: Catharine West Cc: Sangeetha V Signed-off-by: Ashraf Ali S --- UefiCpuPkg/ResetVector/Vtf0/Build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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', -- 2.30.2.windows.1