abuild: Allow building with any toolchain
Adds -A --any-toolchain option to abuild This is handy for those who want to test compiling all board configs with abuild using a non-coreboot toolchain Change-Id: Idd599b0d2c324ad88ba3c83cdf3b180eb6d1fc80 Signed-off-by: Damien Zammit <damien@zamaudio.com> Reviewed-on: https://review.coreboot.org/21352 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
f71a7e66c6
commit
b40c72ae18
|
@ -527,6 +527,7 @@ Usage: $0 [options]
|
||||||
|
|
||||||
Options:\n"
|
Options:\n"
|
||||||
[-a|--all] Build previously succeeded ports as well
|
[-a|--all] Build previously succeeded ports as well
|
||||||
|
[-A|--any-toolchain] Use any toolchain
|
||||||
[-B|--blobs] Allow using binary files
|
[-B|--blobs] Allow using binary files
|
||||||
[--checksum <path/basefile>] Store checksums at path/basefile
|
[--checksum <path/basefile>] Store checksums at path/basefile
|
||||||
[-c|--cpus <numcpus>] Build on <numcpus> at the same time
|
[-c|--cpus <numcpus>] Build on <numcpus> at the same time
|
||||||
|
@ -603,12 +604,12 @@ getoptbrand="$(getopt -V)"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
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,quiet,help,all,target:,payloads:,cpus:,silent,junit,config,loglevel:,remove,prefix:,update,scan-build,ccache,blobs,clang,clean,outdir:,chromeos,xmlfile:,kconfig:,dir:,root:,recursive,checksum:,timeless,exitcode -o Vvqhat:p:c:sJCl:rP:uyBLzo:xX:K:d:R:Ie -- "$@") || exit 1
|
args=$(getopt -l version,verbose,quiet,help,all,target:,payloads:,cpus:,silent,junit,config,loglevel:,remove,prefix:,update,scan-build,ccache,blobs,clang,any-toolchain,clean,outdir:,chromeos,xmlfile:,kconfig:,dir:,root:,recursive,checksum:,timeless,exitcode -o Vvqhat:p:c:sJCl:rP:uyBLAzo:xX:K:d:R:Ie -- "$@") || exit 1
|
||||||
eval set -- $args
|
eval set -- $args
|
||||||
retval=$?
|
retval=$?
|
||||||
else
|
else
|
||||||
# Detected non-GNU getopt
|
# Detected non-GNU getopt
|
||||||
args=$(getopt Vvqhat:p:c:sJCl:rP:uyBLzo:xX:K:d:R:Ie "$@")
|
args=$(getopt Vvqhat:p:c:sJCl:rP:uyBLAzo:xX:K:d:R:Ie "$@")
|
||||||
set -- $args
|
set -- $args
|
||||||
retval=$?
|
retval=$?
|
||||||
fi
|
fi
|
||||||
|
@ -674,6 +675,10 @@ while true ; do
|
||||||
customizing="${customizing}, blobs"
|
customizing="${customizing}, blobs"
|
||||||
configoptions="${configoptions}CONFIG_USE_BLOBS=y\n"
|
configoptions="${configoptions}CONFIG_USE_BLOBS=y\n"
|
||||||
;;
|
;;
|
||||||
|
-A|--any-toolchain) shift
|
||||||
|
customizing="${customizing}, any-toolchain"
|
||||||
|
configoptions="${configoptions}CONFIG_ANY_TOOLCHAIN=y\n"
|
||||||
|
;;
|
||||||
-L|--clang) shift
|
-L|--clang) shift
|
||||||
customizing="${customizing}, clang"
|
customizing="${customizing}, clang"
|
||||||
configoptions="${configoptions}CONFIG_COMPILER_LLVM_CLANG=y\n# CONFIG_COMPILER_GCC is not set\n"
|
configoptions="${configoptions}CONFIG_COMPILER_LLVM_CLANG=y\n# CONFIG_COMPILER_GCC is not set\n"
|
||||||
|
|
Loading…
Reference in New Issue