From 4cffb921d9f5b13b0d3ab494741c09bfa73811c0 Mon Sep 17 00:00:00 2001 From: Craig Hesling Date: Fri, 14 Aug 2020 13:46:28 -0700 Subject: compare_build.sh: Add private directory handling This allows compare_build.sh to use private libs if available. BRANCH=none BUG=none TEST=# Ensure that you have an ec checkout that has a broken # public build, but working private build. ./compare_build.sh -p # This will only work if private was accessible Signed-off-by: Craig Hesling Change-Id: Id5e2d1afe474e0175dbba2cddfd84de7c895a927 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2357870 --- util/compare_build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'util/compare_build.sh') diff --git a/util/compare_build.sh b/util/compare_build.sh index eb763ca4a6..ffe6cab0e5 100755 --- a/util/compare_build.sh +++ b/util/compare_build.sh @@ -51,6 +51,8 @@ DEFINE_integer 'jobs' "-1" 'Number of jobs to pass to make' 'j' # refs at the same time. Use the -o flag. DEFINE_boolean 'oneref' "${FLAGS_FALSE}" \ 'Build only one set of boards at a time. This limits mem.' 'o' +DEFINE_boolean 'private' "${FLAGS_FALSE}" \ + 'Link the private repo/dir into test build source tree.' 'p' # Usage: assoc-add-keys [item1 [item2...]] assoc-add-keys() { @@ -190,6 +192,12 @@ fi echo "# Board Selection:" printf "%s\n" "${BOARDS[@]}" | sort | column +# Symbolically linked directories +LINKS=( ) +if [[ "${FLAGS_private}" == "${FLAGS_TRUE}" ]]; then + LINKS+=( private ) +fi + ########################################################################## # Runtime # ########################################################################## @@ -203,6 +211,7 @@ cat > "${TMP_DIR}/Makefile" <