From f43b06d0eec1f7c67f46ca35122058bae50220e8 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Fri, 31 Jul 2015 16:26:19 +0200 Subject: [PATCH] abuild: when using --chromeos, skip boards with no Chrome OS support Change-Id: Ic33b9311d5f194908b0a923ef5b342bfe992bdfc Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/11092 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- util/abuild/abuild | 9 +++++++++ 1 file changed, 9 insertions(+) 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;;