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

Unified Diff: common.sh

Issue 3059001: Enable fast build by default in build_image and mod_image_for_test.sh. (Closed) Base URL: ssh://git@chromiumos-git/crosutils.git
Patch Set: Only enable by default in non-official builds Created 10 years, 5 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 | « build_image ('k') | mod_image_for_test.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common.sh
diff --git a/common.sh b/common.sh
index a6957fad77524a90cb80594d6f5180895fbe674b..5258c1a6f854ddb00d2ffe5ebc0a60154cf61da8 100644
--- a/common.sh
+++ b/common.sh
@@ -105,6 +105,12 @@ ALL_BOARDS=$(echo $ALL_BOARDS)
#DEFAULT_BOARD=x86-generic # or...
DEFAULT_BOARD=$(echo $ALL_BOARDS | awk '{print $NF}')
+# Enable --fast by default on non-official builds
+DEFAULT_FAST="${FLAGS_TRUE}"
+if [ "${CHROMEOS_OFFICIAL:-0}" = "1" ]; then
+ DEFAULT_FAST="${FLAGS_FALSE}"
+fi
+
# Detect whether we're inside a chroot or not
if [ -e /etc/debian_chroot ]
then
« no previous file with comments | « build_image ('k') | mod_image_for_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698