aboutsummaryrefslogtreecommitdiff
path: root/binary_search_tool/sysroot_wrapper/setup.sh
diff options
context:
space:
mode:
authorJian Cai <jiancai@google.com>2021-03-22 18:48:06 -0700
committerJian Cai <jiancai@google.com>2021-05-19 00:20:16 +0000
commit51a2a9a0b172bda42782377599240aab1867be42 (patch)
tree75f771b77a3ba9d2bd068faef10dfde80a3db8d3 /binary_search_tool/sysroot_wrapper/setup.sh
parent3ae442199e9665d9a13c9f9f4b4306acefcc9b3c (diff)
downloadtoolchain-utils-51a2a9a0b172bda42782377599240aab1867be42.tar.gz
Bisection: add better support for Chrome.
This adds custom path for Chrome, and calls deploy_chrome instead of cros_deploy. Also adds --use_flags and --noreboot options. BUG=b:188061539 TEST=Verified locally Change-Id: Id7ca51199ac7877df57632258e87dab3612113c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2894357 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Tested-by: Jian Cai <jiancai@google.com>
Diffstat (limited to 'binary_search_tool/sysroot_wrapper/setup.sh')
-rwxr-xr-xbinary_search_tool/sysroot_wrapper/setup.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/binary_search_tool/sysroot_wrapper/setup.sh b/binary_search_tool/sysroot_wrapper/setup.sh
index f5907f59..6b9b48f1 100755
--- a/binary_search_tool/sysroot_wrapper/setup.sh
+++ b/binary_search_tool/sysroot_wrapper/setup.sh
@@ -1,6 +1,8 @@
#!/bin/bash -u
#
-# Copyright 2016 Google Inc. All Rights Reserved.
+# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
#
# This script is part of the ChromeOS object binary search triage process.
# It should be the first script called by the user, after the user has set up
@@ -23,6 +25,8 @@ bisect_dir=${BISECT_DIR:-/tmp/sysroot_bisect}
BOARD=$1
REMOTE=$2
PACKAGE=$3
+REBOOT_OPTION=$4
+USE_FLAGS=$5
GOOD_BUILD=${bisect_dir}/good
BAD_BUILD=${bisect_dir}/bad
@@ -60,6 +64,8 @@ cat <<-EOF > ${COMMON_FILE}
BISECT_BOARD=${BOARD}
BISECT_REMOTE=${REMOTE}
BISECT_PACKAGE=${PACKAGE}
+BISECT_REBOOT_OPTION=${REBOOT_OPTION}
+BISECT_USE_FLAGS="${USE_FLAGS}"
BISECT_MODE="OBJECT_MODE"
bisect_dir=${bisect_dir}