mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-28 22:12:10 +01:00
setup_board: add --accept_license flag.
Setting the flag will cause make.conf to set the ACCEPT_LICENSE environment variable. BUG=chromium-os:37312 TEST=remote trybots Change-Id: Id478b7cfb8c37d363da46b1d74f33143e8ea159f Reviewed-on: https://gerrit.chromium.org/gerrit/39801 Reviewed-by: David James <davidjames@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
642c3be66e
commit
eb4595f1e8
@ -42,6 +42,8 @@ show_help_if_requested "$@"
|
||||
# The following options are advanced options, only available to those willing
|
||||
# to read the source code. They are not shown in help output, since they are
|
||||
# not needed for the typical developer workflow.
|
||||
DEFINE_string accept_licenses "" \
|
||||
"Licenses to append to the accept list."
|
||||
DEFINE_boolean fast "${DEFAULT_FAST}" \
|
||||
"Call many emerges in parallel."
|
||||
DEFINE_integer jobs -1 \
|
||||
@ -88,6 +90,9 @@ CHROMITE_BIN="${GCLIENT_ROOT}/chromite/bin"
|
||||
|
||||
# Before we can run any tools, we need to update chroot or setup_board.
|
||||
UPDATE_ARGS=()
|
||||
if [[ -n ${FLAGS_accept_licenses} ]]; then
|
||||
UPDATE_ARGS+=( --accept_licenses "${FLAGS_accept_licenses}" )
|
||||
fi
|
||||
if [ "${FLAGS_fast}" -eq "${FLAGS_TRUE}" ]; then
|
||||
UPDATE_ARGS+=( --fast )
|
||||
else
|
||||
|
||||
@ -33,6 +33,8 @@ show_help_if_requested "$@"
|
||||
# The following options are advanced options, only available to those willing
|
||||
# to read the source code. They are not shown in help output, since they are
|
||||
# not needed for the typical developer workflow.
|
||||
DEFINE_string accept_licenses "" \
|
||||
"Licenses to append to the accept list."
|
||||
DEFINE_string board_overlay "" \
|
||||
"Location of the board overlay."
|
||||
DEFINE_boolean fast ${DEFAULT_FAST} "Call many emerges in parallel"
|
||||
@ -174,6 +176,10 @@ print_board_make_conf() {
|
||||
echo FETCHCOMMAND_GS="\"bash -c 'BOTO_CONFIG=$boto_config $gsutil_cmd'\""
|
||||
echo RESUMECOMMAND_GS='"$FETCHCOMMAND_GS"'
|
||||
echo
|
||||
if [[ -n ${FLAGS_accept_licenses} ]]; then
|
||||
echo "ACCEPT_LICENSE='${FLAGS_accept_licenses}'"
|
||||
echo
|
||||
fi
|
||||
}
|
||||
|
||||
print_binhost_config() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user