util/abuild: Clean up the missing_arches check
commitcccb815c5e4d908db9a668643eda241a740923f2
authorRaul E Rangel <rrangel@chromium.org>
Wed, 10 Jul 2019 18:49:24 +0000 (10 12:49 -0600)
committerMartin Roth <martinroth@google.com>
Thu, 8 Aug 2019 03:42:24 +0000 (8 03:42 +0000)
treedf24d70e690040ff1ec261c75ad1f1af3000b900
parentf4d2c8714f9910def04243731818ca7449d0afa1
util/abuild: Clean up the missing_arches check

This change adds the following improvements:
* Easier to read.
* Checks to see if .xcompile is complete.
* Checks the make return code. This will catch if .xcompile is missing.

BUG=b:112267918
TEST=Modified my .xcompile and ran abuild and verified that
missing_arches got set correctly. Also deleted .xcompile and verified
there was a failure.

Change-Id: I7604d431f398fc0c80a857a0c7c21e164004cc99
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34241
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
util/abuild/abuild