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

Side by Side Diff: build_image

Issue 6814041: Enable fbconsole in recovery and factory shims (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | mod_image_for_recovery.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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 # Determine build version. 189 # Determine build version.
190 . "${OVERLAY_CHROMEOS_DIR}/config/chromeos_version.sh" 190 . "${OVERLAY_CHROMEOS_DIR}/config/chromeos_version.sh"
191 191
192 # Configure extra USE or packages for this type of build. 192 # Configure extra USE or packages for this type of build.
193 EXTRA_PACKAGES="" 193 EXTRA_PACKAGES=""
194 EXTRA_USE="" 194 EXTRA_USE=""
195 if [ "${FLAGS_factory_install}" -eq "${FLAGS_TRUE}" ] ; then 195 if [ "${FLAGS_factory_install}" -eq "${FLAGS_TRUE}" ] ; then
196 # Factory install needs to have the kernel initrmafs enabled, 196 # Factory install needs to have the kernel initrmafs enabled,
197 # and the factory installer added. 197 # and the factory installer added.
198 EXTRA_PACKAGES="${EXTRA_PACKAGES} chromeos-base/chromeos-factoryinstall" 198 EXTRA_PACKAGES="${EXTRA_PACKAGES} chromeos-base/chromeos-factoryinstall"
199 EXTRA_USE="${EXTRA_USE} initramfs" 199 EXTRA_USE="${EXTRA_USE} fbconsole initramfs"
200 fi 200 fi
201 201
202 # Freshen kernel with correct USE flags. This is a noop if we have 202 # Freshen kernel with correct USE flags. This is a noop if we have
203 # the right kernel prebuilt. Factory install uses USE="initramfs". 203 # the right kernel prebuilt. Factory install uses USE="initramfs".
204 # We don't allow building from source with the image as a target, 204 # We don't allow building from source with the image as a target,
205 # and it's not possible to store prebuilts for the same package 205 # and it's not possible to store prebuilts for the same package
206 # with different use flags. 206 # with different use flags.
207 USE="${EXTRA_USE} ${USE}" emerge-${FLAGS_board} \ 207 USE="${EXTRA_USE} ${USE}" emerge-${FLAGS_board} \
208 -uNDvg --binpkg-respect-use=y virtual/kernel 208 -uNDvg --binpkg-respect-use=y virtual/kernel
209 209
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" 811 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}"
812 fi 812 fi
813 813
814 print_time_elapsed 814 print_time_elapsed
815 815
816 echo "To copy to USB keyfob, do something like:" 816 echo "To copy to USB keyfob, do something like:"
817 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" 817 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX"
818 echo "To convert to VMWare image, INSIDE the chroot, do something like:" 818 echo "To convert to VMWare image, INSIDE the chroot, do something like:"
819 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" 819 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}"
820 echo "from the scripts directory where you entered the chroot." 820 echo "from the scripts directory where you entered the chroot."
OLDNEW
« no previous file with comments | « no previous file | mod_image_for_recovery.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698