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

Unified Diff: src/scripts/common.sh

Issue 656023: Changes to use default board when set by setup_board (Closed)
Patch Set: Fix build_autotest 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/build_autotest.sh ('k') | src/scripts/image_to_usb.sh » ('j') | 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 419ff48f04a0e5ad8fb387d7d0033626d33c9f9e..6c97adc2d299c8f3a61bdd415c86029952cc1293 100644
--- a/src/scripts/common.sh
+++ b/src/scripts/common.sh
@@ -141,6 +141,28 @@ esac
# -----------------------------------------------------------------------------
# Functions
+function setup_board_warning {
+ echo
+ echo "$V_REVERSE================= WARNING ======================$V_VIDOFF"
+ echo
+ echo "*** No default board detected in " \
+ "$GCLIENT_ROOT/src/scripts/.default_board"
+ echo "*** Either run setup_board with default flag set"
+ echo "*** or echo |board_name| > $GCLIENT_ROOT/src/scripts/.default_board"
+ echo
+}
+
+
+# Sets the default board variable for calling script
+function get_default_board {
+ DEFAULT_BOARD=
+
+ if [ -f "$GCLIENT_ROOT/src/scripts/.default_board" ] ; then
+ DEFAULT_BOARD=`cat "$GCLIENT_ROOT/src/scripts/.default_board"`
+ fi
+}
+
+
# Make a package
function make_pkg_common {
# Positional parameters from calling script. :? means "fail if unset".
« no previous file with comments | « src/scripts/build_autotest.sh ('k') | src/scripts/image_to_usb.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698