Skip to content

Commit c9578ed

Browse files
committed
helpers: add --quiet argument for non-interactive MW building
Without this one had to do something like 'echo a | build_packages.sh --mw', but we might as well include a flag that does the same thing.
1 parent 3638d0c commit c9578ed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

helpers/build_packages.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ Usage: $0 [OPTION]..."
4646
-b, --build=PKG build one package (PKG can include path)
4747
-s, --spec=SPEC optionally used with -m or -b
4848
can be supplied multiple times to build multiple .spec files at once
49+
-q, --quiet optionally used with -m
50+
build all HW middleware packages without interactively prompting
51+
which to build
4952
-D, --do-not-install
5053
useful when package is needed only in the final image
5154
especially when it conflicts in an SDK target
@@ -59,7 +62,7 @@ EOF
5962
exit 1
6063
}
6164

62-
OPTIONS=$(getopt -o hdcm::gvib:s:DonN -l help,droid-hal,configs,mw::,gg,version,mic,build:,spec:,do-not-install,offline,no-delete,no-auto-version -- "$@")
65+
OPTIONS=$(getopt -o hdcm::gvib:s:qDonN -l help,droid-hal,configs,mw::,gg,version,mic,build:,spec:,quiet,do-not-install,offline,no-delete,no-auto-version -- "$@")
6366

6467
if [ $? -ne 0 ]; then
6568
echo "getopt error"
@@ -86,8 +89,9 @@ while true; do
8689
-c|--configs) BUILDCONFIGS=1 ;;
8790
-D|--do-not-install) DO_NOT_INSTALL=1;;
8891
-N|--no-auto-version) NO_AUTO_VERSION=--no-fix-version ;;
92+
-q|--quiet) BUILDMW_ASK= ;;
8993
-m|--mw) BUILDMW=1
90-
BUILDMW_ASK=1
94+
[ ${BUILDMW_ASK+x} ] || BUILDMW_ASK=1
9195
case "$2" in
9296
*) BUILDMW_REPO=$2;;
9397
esac

0 commit comments

Comments
 (0)