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

Unified Diff: build_image

Issue 2827037: Add --fast to build_image (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: .. Created 10 years, 6 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 | « no previous file | parallel_emerge » ('j') | parallel_emerge » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_image
diff --git a/build_image b/build_image
index 983aa707fc4c56e828953fbd4f7c5336af8375c7..4ee558a12efbfbf688f4260a0dc53e250a10189d 100755
--- a/build_image
+++ b/build_image
@@ -53,6 +53,9 @@ DEFINE_integer statefulfs_size 1024 \
DEFINE_boolean preserve ${FLAGS_FALSE} \
"Attempt to preserve the previous build image if one can be found (unstable, \
kernel/firmware not updated)"
+DEFINE_boolean fast ${FLAGS_FALSE} \
+ "Call many emerges in parallel (unstable)"
+
# Parse command line.
FLAGS "$@" || exit 1
@@ -72,12 +75,10 @@ if [ "${FLAGS_rootfs_size}" -gt "${FLAGS_rootfs_partition_size}" ] ; then
exit 1
fi
-EMERGE_CMD="emerge"
EMERGE_BOARD_CMD="emerge-${FLAGS_board}"
-TOP_SCRIPTS_DIR="$(dirname $0)"
-if [ -e "${TOP_SCRIPTS_DIR}/.emerge" ]; then
+if [ "${FLAGS_fast}" -eq "${FLAGS_TRUE}" ]; then
echo "Using alternate emerge"
- . "${TOP_SCRIPTS_DIR}/.emerge"
+ EMERGE_BOARD_CMD="${SCRIPTS_DIR}/parallel_emerge --board=${FLAGS_board}"
fi
# Determine build version.
« no previous file with comments | « no previous file | parallel_emerge » ('j') | parallel_emerge » ('J')

Powered by Google App Engine
This is Rietveld 408576698