buildgcc: Do not try to install GCC if build failed

We didn't bail out if configuring or building of GCC failed but run
`make install` and later steps instead. This resulted in very confusing
logs that concealed the actual error.

Change-Id: Ia064e0bfd96f0cbad391da3bb19e4dc304d988ff
Signed-off-by: Nico Huber <>
Reviewed-by: Martin Roth <>
Reviewed-by: Patrick Georgi <>
Reviewed-by: Paul Menzel <>
Tested-by: build bot (Jenkins) <>
1 file changed