[coreboot-gerrit] New patch to review for coreboot: abuild: when using --chromeos, skip boards with no Chrome OS support

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Fri Jul 31 17:40:09 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11092

-gerrit

commit 6ba6b06774e703aea79cdd5f605fa3721498ee1c
Author: Patrick Georgi <pgeorgi at google.com>
Date:   Fri Jul 31 16:26:19 2015 +0200

    abuild: when using --chromeos, skip boards with no Chrome OS support
    
    Change-Id: Ic33b9311d5f194908b0a923ef5b342bfe992bdfc
    Signed-off-by: Patrick Georgi <pgeorgi at google.com>
---
 util/abuild/abuild | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/util/abuild/abuild b/util/abuild/abuild
index a14ebca..e347988 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;;



More information about the coreboot-gerrit mailing list