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)
This commit is contained in:
Patrick Georgi 2015-07-31 16:26:19 +02:00
parent 86980bb46a
commit f43b06d0ee
1 changed files with 9 additions and 0 deletions

View File

@ -280,6 +280,11 @@ function build_target
HOSTCC='gcc' 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 if [ -f src/mainboard/${VENDOR}/${MAINBOARD}/abuild.disabled ]; then
echo "${VENDOR}/${MAINBOARD} disabled:" echo "${VENDOR}/${MAINBOARD} disabled:"
cat src/mainboard/${VENDOR}/${MAINBOARD}/abuild.disabled cat src/mainboard/${VENDOR}/${MAINBOARD}/abuild.disabled
@ -413,6 +418,7 @@ Options:\n"
(defaults to $TARGET) (defaults to $TARGET)
[-L|--clang] Use clang [-L|--clang] Use clang
[-x|--chromeos] Build with CHROMEOS enabled [-x|--chromeos] Build with CHROMEOS enabled
Skip boards without Chrome OS support
[--scan-build] use clang's static analyzer [--scan-build] use clang's static analyzer
[cbroot] absolute path to coreboot sources [cbroot] absolute path to coreboot sources
(defaults to $ROOT) (defaults to $ROOT)
@ -469,6 +475,7 @@ if [ $? != 0 ]; then
exit 1 exit 1
fi fi
chromeos=false
clean_work=false clean_work=false
customizing="" customizing=""
configoptions="" configoptions=""
@ -530,6 +537,8 @@ while true ; do
TARGET=$1; shift TARGET=$1; shift
;; ;;
-x|--chromeos) shift -x|--chromeos) shift
chromeos=true
customizing="${customizing}, chrome os"
configoptions="${configoptions}CONFIG_CHROMEOS=y\n" configoptions="${configoptions}CONFIG_CHROMEOS=y\n"
;; ;;
--) shift; break;; --) shift; break;;