From e9fe6545cac2313cbee2b2bdd5c7518e41e9c833 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 14 May 2014 13:43:58 +0200 Subject: abuild: add -L|--clang to enable clang builds Change-Id: I11053456fd90cda07143b76de49c2804e38f06e0 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/5739 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Stefan Reinauer --- util/abuild/abuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/abuild/abuild b/util/abuild/abuild index 713bbf6051..c08f4a26e9 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 ] 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;; -- cgit v1.2.3