diff options
author | Patrick Georgi <pgeorgi@google.com> | 2015-07-31 16:26:19 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-08-08 12:00:13 +0200 |
commit | f43b06d0eec1f7c67f46ca35122058bae50220e8 (patch) | |
tree | 7272b2b3a97485228b1ac464fc9af8f498dd0913 /util | |
parent | 86980bb46afd6576a5f6bfbdf37555fb0ce5cd08 (diff) | |
download | coreboot-f43b06d0eec1f7c67f46ca35122058bae50220e8.tar.xz |
abuild: when using --chromeos, skip boards with no Chrome OS support
Change-Id: Ic33b9311d5f194908b0a923ef5b342bfe992bdfc
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: http://review.coreboot.org/11092
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
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 a14ebcadaa..e3479880ea 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -280,6 +280,11 @@ function build_target HOSTCC='gcc' + if [ $chromeos = true -a `grep -c "^[[:space:]]*select[[:space:]]*MAINBOARD_HAS_CHROMEOS\>" src/mainboard/${VENDOR}/${MAINBOARD}/Kconfig` -eq 0 ]; then + echo "${VENDOR}/${MAINBOARD} doesn't support Chrome OS, skipping." + return + fi + if [ -f src/mainboard/${VENDOR}/${MAINBOARD}/abuild.disabled ]; then echo "${VENDOR}/${MAINBOARD} disabled:" cat src/mainboard/${VENDOR}/${MAINBOARD}/abuild.disabled @@ -413,6 +418,7 @@ Options:\n" (defaults to $TARGET) [-L|--clang] Use clang [-x|--chromeos] Build with CHROMEOS enabled + Skip boards without Chrome OS support [--scan-build] use clang's static analyzer [cbroot] absolute path to coreboot sources (defaults to $ROOT) @@ -469,6 +475,7 @@ if [ $? != 0 ]; then exit 1 fi +chromeos=false clean_work=false customizing="" configoptions="" @@ -530,6 +537,8 @@ while true ; do TARGET=$1; shift ;; -x|--chromeos) shift + chromeos=true + customizing="${customizing}, chrome os" configoptions="${configoptions}CONFIG_CHROMEOS=y\n" ;; --) shift; break;; |