summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-05-14 13:43:58 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-05-15 10:06:43 +0200
commite9fe6545cac2313cbee2b2bdd5c7518e41e9c833 (patch)
tree8c6685993a7ae3b73b382d6d9d17cbd9d11f2163 /util
parent9fd7c0f18ee8665f2e4dc311ae906412f2b0a0a1 (diff)
downloadcoreboot-e9fe6545cac2313cbee2b2bdd5c7518e41e9c833.tar.xz
abuild: add -L|--clang to enable clang builds
Change-Id: I11053456fd90cda07143b76de49c2804e38f06e0 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/5739 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/abuild/abuild7
1 files changed, 6 insertions, 1 deletions
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 <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;;