public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Kirkendall, Garrett" <garrett.kirkendall@amd.com>
To: gaoliming <gaoliming@byosoft.com.cn>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: 'Bob Feng' <bob.c.feng@intel.com>, 'Yuwei Chen' <yuwei.chen@intel.com>
Subject: Re: [PATCH v1 1/1] BaseTools: build: Set ReturnCode on POSTBUILD fail
Date: Wed, 19 May 2021 16:55:46 +0000	[thread overview]
Message-ID: <SA0PR12MB45257AED1234068986098B94852B9@SA0PR12MB4525.namprd12.prod.outlook.com> (raw)
In-Reply-To: <00bc01d74a2a$dc5ca560$9515f020$@byosoft.com.cn>

Any traction on this patch?  Thank you Liming Gao for your quick response.

GARRETT KIRKENDALL
SMTS Firmware Engineer
7171 Southwest Parkway, Austin, TX 78735 USA 
AMD   facebook  |  amd.com

> -----Original Message-----
> From: gaoliming <gaoliming@byosoft.com.cn>
> Sent: Sunday, May 16, 2021 3:10 AM
> To: Kirkendall, Garrett <Garrett.Kirkendall@amd.com>;
> devel@edk2.groups.io
> Cc: 'Bob Feng' <bob.c.feng@intel.com>; 'Yuwei Chen'
> <yuwei.chen@intel.com>
> Subject: 回复: [PATCH v1 1/1] BaseTools: build: Set ReturnCode on
> POSTBUILD fail
> 
> [CAUTION: External Email]
> 
> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
> 
> > -----邮件原件-----
> > 发件人: Garrett Kirkendall <Garrett.Kirkendall@amd.com>
> > 发送时间: 2021年5月14日 23:02
> > 收件人: devel@edk2.groups.io
> > 抄送: Bob Feng <bob.c.feng@intel.com>; Liming Gao
> > <gaoliming@byosoft.com.cn>; Yuwei Chen <yuwei.chen@intel.com>;
> Garrett
> > Kirkendall <garrett.kirkendall@amd.com>
> > 主题: [PATCH v1 1/1] BaseTools: build: Set ReturnCode on POSTBUILD fail
> >
> > When build.by POSTBUILD handling section returns other than 0, set
> > ReturnCode to POSTBUILD_ERROR so build.py exits with return code other
> > than 0.
> >
> > Fix for
> >
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugz
> >
> illa.tianocore.org%2Fshow_bug.cgi%3Fid%3D1977&amp;data=04%7C01%7Cg
> arre
> >
> tt.kirkendall%40amd.com%7C82d1c5d0ec074f97850808d918420023%7C3dd89
> 61fe
> >
> 4884e608e11a82d994e183d%7C0%7C0%7C637567494029885033%7CUnknown
> %7CTWFpb
> >
> GZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI
> 6Mn0
> >
> %3D%7C1000&amp;sdata=tJsVIW3rhrBZiovl6Q%2FnvLUtiJCM%2BDksqSZHU
> QGaskw%3
> > D&amp;reserved=0
> >
> > Cc: Bob Feng <bob.c.feng@intel.com>
> > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> > Cc: Yuwei Chen <yuwei.chen@intel.com>
> >
> > Signed-off-by: Garrett Kirkendall <garrett.kirkendall@amd.com>
> > ---
> >  BaseTools/Source/Python/build/build.py | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/BaseTools/Source/Python/build/build.py
> > b/BaseTools/Source/Python/build/build.py
> > index 037493f0b02a..3e4d83409f49 100755
> > --- a/BaseTools/Source/Python/build/build.py
> > +++ b/BaseTools/Source/Python/build/build.py
> > @@ -2757,6 +2757,7 @@ def Main():
> >              Conclusion = "Done"
> >
> >          except:
> >
> >              Conclusion = "Failed"
> >
> > +            ReturnCode = POSTBUILD_ERROR
> >
> >      elif ReturnCode == ABORT_ERROR:
> >
> >          Conclusion = "Aborted"
> >
> >      else:
> >
> > --
> > 2.30.1.windows.1
> 
> 


  reply	other threads:[~2021-05-19 16:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-14 15:01 [PATCH v1 0/1] BaseTools: build: Set ReturnCode on POSTBUILD fail Kirkendall, Garrett
2021-05-14 15:01 ` [PATCH v1 1/1] " Kirkendall, Garrett
2021-05-16  8:09   ` 回复: " gaoliming
2021-05-19 16:55     ` Kirkendall, Garrett [this message]
     [not found]   ` <167F7DB41BEEF9C0.24037@groups.io>
2021-05-21  6:28     ` 回复: [edk2-devel] " gaoliming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SA0PR12MB45257AED1234068986098B94852B9@SA0PR12MB4525.namprd12.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox