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

Side by Side Diff: build_image

Issue 5513009: Moving chromeos_version.sh to chromiumos_overlay. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: crosversion Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « bin/cbuildbot.py ('k') | chromeos_version.sh » ('j') | 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 bigger than partition (${FLAGS_rootfs_partition_size} MiB)." 156 bigger than partition (${FLAGS_rootfs_partition_size} MiB)."
157 fi 157 fi
158 158
159 EMERGE_BOARD_CMD="emerge-${FLAGS_board}" 159 EMERGE_BOARD_CMD="emerge-${FLAGS_board}"
160 if [ "${FLAGS_fast}" -eq "${FLAGS_TRUE}" ]; then 160 if [ "${FLAGS_fast}" -eq "${FLAGS_TRUE}" ]; then
161 echo "Using alternate emerge" 161 echo "Using alternate emerge"
162 EMERGE_BOARD_CMD="${SCRIPTS_DIR}/parallel_emerge --board=${FLAGS_board}" 162 EMERGE_BOARD_CMD="${SCRIPTS_DIR}/parallel_emerge --board=${FLAGS_board}"
163 fi 163 fi
164 164
165 # Determine build version. 165 # Determine build version.
166 . "${SCRIPTS_DIR}/chromeos_version.sh" 166 . ${SRC_ROOT}/third_party/chromiumos-overlay/chromeos/config/chromeos_version.sh
167 167
168 # Configure extra USE or packages for this type of build. 168 # Configure extra USE or packages for this type of build.
169 EXTRA_PACKAGES="" 169 EXTRA_PACKAGES=""
170 EXTRA_USE="" 170 EXTRA_USE=""
171 if [ "${FLAGS_factory_install}" -eq "${FLAGS_TRUE}" ] ; then 171 if [ "${FLAGS_factory_install}" -eq "${FLAGS_TRUE}" ] ; then
172 # Factory install needs to have the kernel initrmafs enabled, 172 # Factory install needs to have the kernel initrmafs enabled,
173 # and the factory installer added. 173 # and the factory installer added.
174 EXTRA_PACKAGES="${EXTRA_PACKAGES} chromeos-base/chromeos-factoryinstall" 174 EXTRA_PACKAGES="${EXTRA_PACKAGES} chromeos-base/chromeos-factoryinstall"
175 EXTRA_USE="${EXTRA_USE} initramfs" 175 EXTRA_USE="${EXTRA_USE} initramfs"
176 fi 176 fi
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" 815 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}"
816 fi 816 fi
817 817
818 print_time_elapsed 818 print_time_elapsed
819 819
820 echo "To copy to USB keyfob, do something like:" 820 echo "To copy to USB keyfob, do something like:"
821 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" 821 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX"
822 echo "To convert to VMWare image, INSIDE the chroot, do something like:" 822 echo "To convert to VMWare image, INSIDE the chroot, do something like:"
823 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" 823 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}"
824 echo "from the scripts directory where you entered the chroot." 824 echo "from the scripts directory where you entered the chroot."
OLDNEW
« no previous file with comments | « bin/cbuildbot.py ('k') | chromeos_version.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698