diff options
author | Martin Roth <gaumless@gmail.com> | 2017-03-27 23:45:31 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-04-04 17:47:21 +0200 |
commit | 333142636fa882265c072a5bd871ec971327c3b1 (patch) | |
tree | b05fce02feae4d3152a214db1995d48e96fa8708 /util/abuild | |
parent | c7e6ad7be2871b08644712506cc9869e398c95b4 (diff) |
abuild: add timeless build command line parameter
Update ABUILD_VERSION for the timeless & checksum parameters.
Change-Id: I96b4c027ccf3e5563dbf4598a0d1fb5e83a5985a
Signed-off-by: Martin Roth <gaumless@gmail.com>
Reviewed-on: https://review.coreboot.org/19034
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/abuild')
-rwxr-xr-x | util/abuild/abuild | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild index becf53846a..c3b327183d 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -17,7 +17,7 @@ #set -x # Turn echo on.... ABUILD_DATE="Mar 28, 2017" -ABUILD_VERSION="0.10.02" +ABUILD_VERSION="0.10.03" TOP=$PWD @@ -59,6 +59,9 @@ cpus=1 # change with -d <directory> configdir="$TOP/configs" +# Timeless builds +TIMELESS=0 + # One might want to adjust these in case of cross compiling for i in make gmake gnumake nonexistant_make; do $i --version 2>/dev/null |grep "GNU Make" >/dev/null && break @@ -342,7 +345,7 @@ function compile_target CURR=$( pwd ) #stime=`perl -e 'print time();' 2>/dev/null || date +%s` # shellcheck disable=SC2086 - eval $BUILDPREFIX $MAKE $silent DOTCONFIG="${build_dir}/config.build" obj="${build_dir}" objutil="$TARGET/sharedutils" \ + eval $BUILDPREFIX $MAKE $silent DOTCONFIG="${build_dir}/config.build" obj="${build_dir}" objutil="$TARGET/sharedutils" BUILD_TIMELESS=$TIMELESS \ &> "${build_dir}/make.log" ; \ MAKE_FAILED=$? cp .xcompile "${build_dir}/xcompile.build" @@ -544,6 +547,7 @@ Options:\n" (defaults to $ROOT) [--scan-build] Use clang's static analyzer [-s|--silent] Omit compiler calls in logs + [--timeless] Generate timeless builds [-t|--target <vendor/board>] Attempt to build target vendor/board only [-T|--test] Submit image(s) to automated test system [-u|--update] Update existing image @@ -599,7 +603,7 @@ 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:,root:,recursive,checksum: -o Vvqhat:p:c:sJCl:rP:uyBLzo:xX:K:d:R:I -- "$@") || 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:,recursive,checksum:,timeless -o Vvqhat:p:c:sJCl:rP:uyBLzo:xX:K:d:R:I -- "$@") || exit 1 eval set -- $args retval=$? else @@ -692,6 +696,7 @@ while true ; do configoptions="$(cat "$1")${configoptions}\n" shift;; --checksum) shift; checksum_file="$1"; shift;; + --timeless) shift; TIMELESS=1;; --) shift; break;; -*) printf "Invalid option '%s'\n\n" "$1"; myhelp; exit 1;; *) break;; |