From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web11.3724.1621152602319463807 for ; Sun, 16 May 2021 01:10:03 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([101.224.113.153]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Sun, 16 May 2021 16:09:55 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 101.224.113.153 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Garrett Kirkendall'" , Cc: "'Bob Feng'" , "'Yuwei Chen'" References: <20210514150143.5-1-Garrett.Kirkendall@amd.com> <20210514150143.5-2-Garrett.Kirkendall@amd.com> In-Reply-To: <20210514150143.5-2-Garrett.Kirkendall@amd.com> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggdjEgMS8xXSBCYXNlVG9vbHM6IGJ1aWxkOiBTZXQgUmV0dXJuQ29kZSBvbiBQT1NUQlVJTEQgZmFpbA==?= Date: Sun, 16 May 2021 16:09:57 +0800 Message-ID: <00bc01d74a2a$dc5ca560$9515f020$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKVofpEwYBIn0QYcvI4WhjGVRMXmwHWX1IjqVpewFA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Garrett Kirkendall > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA5=D4=C214=C8=D5 23:02 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Bob Feng ; Liming Gao > ; Yuwei Chen ; Garrett > Kirkendall > =D6=F7=CC=E2: [PATCH v1 1/1] BaseTools: build: Set ReturnCode on = POSTBUILD fail >=20 > 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. >=20 > Fix for https://bugzilla.tianocore.org/show_bug.cgi?id=3D1977 >=20 > Cc: Bob Feng > Cc: Liming Gao > Cc: Yuwei Chen >=20 > Signed-off-by: Garrett Kirkendall > --- > BaseTools/Source/Python/build/build.py | 1 + > 1 file changed, 1 insertion(+) >=20 > 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 =3D "Done" >=20 > except: >=20 > Conclusion =3D "Failed" >=20 > + ReturnCode =3D POSTBUILD_ERROR >=20 > elif ReturnCode =3D=3D ABORT_ERROR: >=20 > Conclusion =3D "Aborted" >=20 > else: >=20 > -- > 2.30.1.windows.1