Martin Roth (martinroth@google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17740
-gerrit
commit ff79596ee375b448f2a436e5cd2e5df3629c7e5a Author: Martin Roth martinroth@google.com Date: Tue Dec 6 09:18:36 2016 -0700
util/abuild: Add argument -R to specify root directory
cbroot was previously specified by just adding it to the end of the command line with no explicit identifier. This change allows it to go anywhere in the command line and adds the -R or --root identifier.
This makes the command line more consistent. Most of the time, this argument isn't even needed, as the automatic detection finds cbroot.
Change-Id: I1d6fd8f51765d0d8b29be8af1e8105e06dd44cc8 Signed-off-by: Martin Roth martinroth@google.com --- util/abuild/abuild | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/util/abuild/abuild b/util/abuild/abuild index 13c419c..65f55a0 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -16,8 +16,8 @@
#set -x # Turn echo on....
-ABUILD_DATE="Nov 23, 2016" -ABUILD_VERSION="0.10.0" +ABUILD_DATE="Dec 6, 2016" +ABUILD_VERSION="0.10.01"
TOP=$PWD
@@ -508,7 +508,7 @@ function remove_target function myhelp { cat << __END_OF_HELP -Usage: $0 [options] [cbroot] +Usage: $0 [options] $0 [-V|--version] $0 [-h|--help]
@@ -528,6 +528,8 @@ Options:\n" [-P|--prefix <name>] File name prefix in CBFS [-q|--quiet] Print fewer messages [-r|--remove] Remove output dir after build + [-R|--root <path>] Absolute path to coreboot sources + (defaults to $ROOT) [--scan-build] Use clang's static analyzer [-s|--silent] Omit compiler calls in logs [-t|--target <vendor/board>] Attempt to build target vendor/board only @@ -541,9 +543,6 @@ Options:\n" [-y|--ccache] Use ccache [-z|--clean] Remove build results when finished
- [cbroot] Absolute path to coreboot sources - (defaults to $ROOT) - [-V|--version] Print version number and exit [-h|--help] Print this help and exit
@@ -588,12 +587,12 @@ getoptbrand="$(getopt -V)" # shellcheck disable=SC2086 if [ "${getoptbrand:0:6}" == "getopt" ]; then # 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: -o Vvqhat:p:c:sJCl:rP:uyBLzo:xX:K:d: -- "$@") || 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,clean,outdir:,chromeos,xmlfile:,kconfig:,dir:,root: -o Vvqhat:p:c:sJCl:rP:uyBLzo:xX:K:d:R: -- "$@") || exit 1 eval set -- $args retval=$? else # Detected non-GNU getopt - args=$(getopt Vvqhat:p:c:sJCl:rP:uyBLzo:xX:K:d: "$@") + args=$(getopt Vvqhat:p:c:sJCl:rP:uyBLzo:xX:K:d:R: "$@") set -- $args retval=$? fi @@ -621,6 +620,7 @@ while true ; do -V|--version) shift; myversion; exit 0;; -h|--help) shift; myversion; myhelp; exit 0;; -p|--payloads) shift; payloads="$1"; shift;; + -R|--root) shift; ROOT="$1"; shift;; -c|--cpus) shift export MAKEFLAGS="-j $1" cpus=$1 @@ -773,8 +773,6 @@ build_targets() } fi
-test -z "$1" || ROOT=$1 - debug "ROOT=$ROOT"
junit '<?xml version="1.0" encoding="utf-8"?>'