From af558e46767f4f71ef1165399dc87e5f9e8ae656 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Fri, 7 Sep 2018 21:07:51 +0200 Subject: [PATCH] build.sh: Allow specifying the gluon targets that should be built --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.sh b/build.sh index 2f8f21a..56da0ec 100755 --- a/build.sh +++ b/build.sh @@ -8,6 +8,7 @@ function usage () { echo "Usage: $0 -g GLUON_PATH" >&2 echo " -g GLUON_PATH Path to a checkout of the gluon repository." >&2 echo " -l SITES Comma separated list of sites to build" >&2 + echo " -t TARGETS Comma separated list of gluon targets to build" >&2 echo " -o OUT_PATH Path to the firmware output directory. Default: ${gluon_out}" >&2 echo " -s SIGNATURE Sign firmware with signature" >&2 echo " -u UPLOADSCRIPT Run UPLOADSCRIPT after building. Will be run with one argument: $gluon_out/" >&2 @@ -30,6 +31,10 @@ while [ $# -gt 0 ]; do sites="$2" shift ;; + -t) + build_targets="$2" + shift + ;; -o) gluon_out="$2" shift @@ -84,6 +89,8 @@ fi . ./info export GLUON_RELEASE export GLUON_BRANCH +# if a list of build targets has been supplied, only build those +targets="$(echo "${build_targets:-$targets}" | sed -e 's_,_ _g')" # get the available sites... sites="$(echo "$sites" | sed -e 's_,_ _g')" if [ "$sites" == "" ]; then