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>
This commit is contained in:
parent
9fd7c0f18e
commit
e9fe6545ca
|
@ -393,6 +393,7 @@ function myhelp
|
||||||
printf " [-u|--update] update existing image\n"
|
printf " [-u|--update] update existing image\n"
|
||||||
printf " [-P|--prefix <name>] file name prefix in CBFS\n"
|
printf " [-P|--prefix <name>] file name prefix in CBFS\n"
|
||||||
printf " [-B|--blobs] Allow using binary files\n"
|
printf " [-B|--blobs] Allow using binary files\n"
|
||||||
|
printf " [-L|--clang] Use clang\n"
|
||||||
printf " [cbroot] absolute path to coreboot sources\n"
|
printf " [cbroot] absolute path to coreboot sources\n"
|
||||||
printf " (defaults to $ROOT)\n\n"
|
printf " (defaults to $ROOT)\n\n"
|
||||||
}
|
}
|
||||||
|
@ -433,7 +434,7 @@ cmdline="$* -c 1"
|
||||||
getoptbrand="`getopt -V`"
|
getoptbrand="`getopt -V`"
|
||||||
if [ "${getoptbrand:0:6}" == "getopt" ]; then
|
if [ "${getoptbrand:0:6}" == "getopt" ]; then
|
||||||
# Detected GNU getopt that supports long options.
|
# 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
|
eval set -- $args
|
||||||
else
|
else
|
||||||
# Detected non-GNU getopt
|
# Detected non-GNU getopt
|
||||||
|
@ -494,6 +495,10 @@ while true ; do
|
||||||
customizing="${customizing}, blobs"
|
customizing="${customizing}, blobs"
|
||||||
configoptions="${configoptions}CONFIG_USE_BLOBS=y\n"
|
configoptions="${configoptions}CONFIG_USE_BLOBS=y\n"
|
||||||
;;
|
;;
|
||||||
|
-L|--clang) shift
|
||||||
|
customizing="${customizing}, clang"
|
||||||
|
configoptions="${configoptions}CONFIG_COMPILER_LLVM_CLANG=y\n"
|
||||||
|
;;
|
||||||
--) shift; break;;
|
--) shift; break;;
|
||||||
-*) printf "Invalid option\n\n"; myhelp; exit 1;;
|
-*) printf "Invalid option\n\n"; myhelp; exit 1;;
|
||||||
*) break;;
|
*) break;;
|
||||||
|
|
Loading…
Reference in New Issue