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

Unified Diff: src/scripts/build_image

Issue 1521012: Add a --to option to build_image (Closed)
Patch Set: Created 10 years, 9 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
Index: src/scripts/build_image
diff --git a/src/scripts/build_image b/src/scripts/build_image
index b6b665a6b56d2036d025334e6140f2192e8222f6..b1f8fe6e8444eba946583bf0b1ebe0bc2ff6315f 100755
--- a/src/scripts/build_image
+++ b/src/scripts/build_image
@@ -37,6 +37,8 @@ DEFINE_integer jobs -1 \
"How many packages to build in parallel at maximum."
DEFINE_boolean statefuldev $FLAGS_FALSE \
"Install development packages on stateful partition -- still experimental"
+DEFINE_string to "" \
+ "The target image file or device"
DEFINE_boolean withtest $FLAGS_FALSE \
"Include packages required for testing and prepare image for testing"
@@ -69,7 +71,7 @@ IMAGE_SUBDIR="${CHROMEOS_VERSION_STRING}-a${FLAGS_build_attempt}"
OUTPUT_DIR="${FLAGS_output_root}/${FLAGS_board}/${IMAGE_SUBDIR}"
ROOT_FS_DIR="${OUTPUT_DIR}/rootfs"
ROOT_FS_IMG="${OUTPUT_DIR}/rootfs.image"
-OUTPUT_IMG="${OUTPUT_DIR}/chromiumos_image.bin"
+OUTPUT_IMG=${FLAGS_to:-${OUTPUT_DIR}/chromiumos_image.bin}
BOARD="${FLAGS_board}"
BOARD_ROOT="${FLAGS_build_root}/${BOARD}"

Powered by Google App Engine
This is Rietveld 408576698