[coreboot-gerrit] New patch to review for coreboot: c986847 abuild: add -L|--clang to enable clang builds

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Wed May 14 16:38:26 CEST 2014


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5739

-gerrit

commit c986847e83146c9586f6f90b01f0d74ca02db3fb
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Wed May 14 13:43:58 2014 +0200

    abuild: add -L|--clang to enable clang builds
    
    Change-Id: I11053456fd90cda07143b76de49c2804e38f06e0
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 util/abuild/abuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/util/abuild/abuild b/util/abuild/abuild
index 713bbf6..c08f4a2 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -393,6 +393,7 @@ function myhelp
 	printf "    [-u|--update]                 update existing image\n"
 	printf "    [-P|--prefix <name>]          file name prefix in CBFS\n"
 	printf "    [-B|--blobs]                  Allow using binary files\n"
+	printf "    [-L|--clang]                  Use clang\n"
 	printf "    [cbroot]			  absolute path to coreboot sources\n"
 	printf "				  (defaults to $ROOT)\n\n"
 }
@@ -433,7 +434,7 @@ cmdline="$* -c 1"
 getoptbrand="`getopt -V`"
 if [ "${getoptbrand:0:6}" == "getopt" ]; then
 	# Detected GNU getopt that supports long options.
-	args=`getopt -l version,verbose,help,all,target:,payloads:,test,cpus:,silent,junit,config,loglevel:,remove,prefix:,update,scan-build,ccache,blobs -o Vvhat:p:Tc:sJCl:rP:uyB -- "$@"` || exit 1
+	args=`getopt -l version,verbose,help,all,target:,payloads:,test,cpus:,silent,junit,config,loglevel:,remove,prefix:,update,scan-build,ccache,blobs,clang -o Vvhat:p:Tc:sJCl:rP:uyBL -- "$@"` || exit 1
 	eval set -- $args
 else
 	# Detected non-GNU getopt
@@ -494,6 +495,10 @@ while true ; do
 			customizing="${customizing}, blobs"
 			configoptions="${configoptions}CONFIG_USE_BLOBS=y\n"
 			;;
+		-L|--clang)	shift
+			customizing="${customizing}, clang"
+			configoptions="${configoptions}CONFIG_COMPILER_LLVM_CLANG=y\n"
+			;;
 		--)		shift; break;;
 		-*)		printf "Invalid option\n\n"; myhelp; exit 1;;
 		*)		break;;



More information about the coreboot-gerrit mailing list