Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: src/scripts/common.sh

Issue 647053: Fix archive_build.sh to work with new build using board subdirs. (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/scripts/archive_build.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/common.sh
diff --git a/src/scripts/common.sh b/src/scripts/common.sh
index 07b5cbb70646ae90d272731ea54c88d2b4c20cca..10fce47d575c5aca94567e47abd6e23681e17d75 100644
--- a/src/scripts/common.sh
+++ b/src/scripts/common.sh
@@ -1,4 +1,4 @@
-# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+# Copyright (c) 2010 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.
@@ -97,6 +97,14 @@ DEFAULT_CHROOT_DIR=${CHROMEOS_CHROOT_DIR:-"$GCLIENT_ROOT/chroot"}
# they don't pollute the source directory.
DEFAULT_BUILD_ROOT=${CHROMEOS_BUILD_ROOT:-"$SRC_ROOT/build"}
+# Set up a global ALL_BOARDS value
+ALL_BOARDS=$(cd ../overlays;ls -1d overlay-* 2>&-|sed 's,overlay-,,g')
+# Strip CR
+ALL_BOARDS=$(echo $ALL_BOARDS)
+# Set a default BOARD
+#DEFAULT_BOARD=x86-generic # or...
+DEFAULT_BOARD=$(echo $ALL_BOARDS | awk '{print $NF}')
+
# Detect whether we're inside a chroot or not
if [ -e /etc/debian_chroot ]
then
« no previous file with comments | « src/scripts/archive_build.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698