utils/brmake: print the error code of the build
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 4 Jul 2017 21:53:15 +0000 (23:53 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 4 Jul 2017 22:15:05 +0000 (00:15 +0200)
commitc8d8f74a939ac1381d7ac7dee356247f91347ace
tree292b872c14b8f7e48cf95d1be94edc301bd1c001
parent7af85ffdc7ba904f8e6bde35e1f02b149a265293
utils/brmake: print the error code of the build

Since the stdout and stderr streams are redirected, it is not
immediately obvious when a build failed, even though brmake really exits
with the same error code as make did.

When there is an error, print the exit code after the elapsed time.

Reported-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
utils/brmake