]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: build: Set ReturnCode on POSTBUILD fail
authorGarrett Kirkendall <Garrett.Kirkendall@amd.com>
Fri, 14 May 2021 15:01:43 +0000 (23:01 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 21 May 2021 06:52:36 +0000 (06:52 +0000)
commit04ae17218deec25c6f488609c5e2ca9c419d2c4b
tree4877630bdaf85f4215eb2a6afc12f45300748d6f
parent15ee7b76891a78141e6e30ef3f8572e8d6b326d2
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://bugzilla.tianocore.org/show_bug.cgi?id=1977

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>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
BaseTools/Source/Python/build/build.py