diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2014-10-18 11:57:11 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2014-10-18 14:45:36 +0200 |
commit | 02802dfa5a7dcc4b848e52123efaf3da2a17b295 (patch) | |
tree | 0548ac617b2f96a2b120f61840c18991c217a6f8 /util | |
parent | 0a76bccc947b4d1de0a87cf3a19efd79fce22d3c (diff) | |
download | coreboot-02802dfa5a7dcc4b848e52123efaf3da2a17b295.tar.xz |
abuild: skip boards for which we lack a cross compiler
We don't support them, they won't ever pass the build test,
so no need to report an error.
Change-Id: I2409a79f3c0d66a79b0e065e6b9ebf62d0359b3e
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/7121
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util')
-rwxr-xr-x | util/abuild/abuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild index 4ddf010f90..b72e2127a8 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -284,6 +284,15 @@ function build_target stime=`perl -e 'print time();' 2>/dev/null || date +%s` create_buildenv $VENDOR $MAINBOARD $CONFIG + + required_arches=`egrep "^CONFIG_ARCH_(BOOTBLOCK|R.MSTAGE)" $TARGET/${VENDOR}_${MAINBOARD}/config.build | \ + sed "s,^CONFIG_ARCH_[^_]*_\([^=]*\)=.*$,\1," |sort -u |tr 'A-Z' 'a-z'` + missing_arches=`printf 'include .xcompile\nall: ; @echo $(foreach arch,'$required_arches',$(if $(filter $(arch),$(ARCH_SUPPORTED)),,$(arch)))' | make -f -` + if [ -n "$missing_arches" ]; then + printf "skipping $VENDOR/$MAINBOARD because we're missing compilers for ($missing_arches)\n" + return + fi + if [ $? -eq 0 -a $configureonly -eq 0 ]; then BUILDPREFIX= if [ "$scanbuild" = "true" ]; then |