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

Side by Side Diff: src/scripts/build_image

Issue 1989001: Flag day flip of statefuldev (Closed) Base URL: ssh://git@chromiumos-git//chromeos
Patch Set: Created 10 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Script to build a bootable keyfob-based chromeos system image from within 7 # Script to build a bootable keyfob-based chromeos system image from within
8 # a chromiumos setup. This assumes that all needed packages have been built into 8 # a chromiumos setup. This assumes that all needed packages have been built into
9 # the given target's root with binary packages turned on. This script will 9 # the given target's root with binary packages turned on. This script will
10 # build the Chrome OS image using only pre-built binary packages. 10 # build the Chrome OS image using only pre-built binary packages.
(...skipping 17 matching lines...) Expand all
28 DEFINE_string output_root "${DEFAULT_BUILD_ROOT}/images" \ 28 DEFINE_string output_root "${DEFAULT_BUILD_ROOT}/images" \
29 "Directory in which to place image result directories (named by version)" 29 "Directory in which to place image result directories (named by version)"
30 DEFINE_boolean replace $FLAGS_FALSE \ 30 DEFINE_boolean replace $FLAGS_FALSE \
31 "Overwrite existing output, if any." 31 "Overwrite existing output, if any."
32 DEFINE_boolean withdev $FLAGS_TRUE \ 32 DEFINE_boolean withdev $FLAGS_TRUE \
33 "Include useful developer friendly utilities in the image." 33 "Include useful developer friendly utilities in the image."
34 DEFINE_boolean installmask $FLAGS_TRUE \ 34 DEFINE_boolean installmask $FLAGS_TRUE \
35 "Use INSTALL_MASK to shrink the resulting image." 35 "Use INSTALL_MASK to shrink the resulting image."
36 DEFINE_integer jobs -1 \ 36 DEFINE_integer jobs -1 \
37 "How many packages to build in parallel at maximum." 37 "How many packages to build in parallel at maximum."
38 DEFINE_boolean statefuldev $FLAGS_FALSE \ 38 DEFINE_boolean statefuldev $FLAGS_TRUE \
39 "Install development packages on stateful partition rather than the rootfs" 39 "Install development packages on stateful partition rather than the rootfs"
40 DEFINE_string to "" \ 40 DEFINE_string to "" \
41 "The target image file or device" 41 "The target image file or device"
42 DEFINE_boolean withtest $FLAGS_FALSE \ 42 DEFINE_boolean withtest $FLAGS_FALSE \
43 "Include packages required for testing and prepare image for testing" 43 "Include packages required for testing and prepare image for testing"
44 DEFINE_string factory_server "" \ 44 DEFINE_string factory_server "" \
45 "Build a factory install image pointing to given server." 45 "Build a factory install image pointing to given server."
46 DEFINE_string arm_extra_bootargs "" \ 46 DEFINE_string arm_extra_bootargs "" \
47 "Additional command line options to pass to the ARM kernel." 47 "Additional command line options to pass to the ARM kernel."
48 48
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 455
456 OUTSIDE_OUTPUT_DIR="../build/images/${FLAGS_board}/${IMAGE_SUBDIR}" 456 OUTSIDE_OUTPUT_DIR="../build/images/${FLAGS_board}/${IMAGE_SUBDIR}"
457 echo "Done. Image created in ${OUTPUT_DIR}" 457 echo "Done. Image created in ${OUTPUT_DIR}"
458 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" 458 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:"
459 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" 459 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX"
460 echo "To convert to VMWare image, OUTSIDE the chroot, do something like:" 460 echo "To convert to VMWare image, OUTSIDE the chroot, do something like:"
461 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}" 461 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}"
462 echo "from the scripts directory where you entered the chroot." 462 echo "from the scripts directory where you entered the chroot."
463 463
464 trap - EXIT 464 trap - EXIT
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698