OLD | NEW |
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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 *86) | 234 *86) |
235 ARCH="x86" | 235 ARCH="x86" |
236 ;; | 236 ;; |
237 *) | 237 *) |
238 error "Unable to determine ARCH from toolchain: ${CHOST}" | 238 error "Unable to determine ARCH from toolchain: ${CHOST}" |
239 exit 1 | 239 exit 1 |
240 esac | 240 esac |
241 | 241 |
242 if [[ ${FLAGS_enable_rootfs_verification} -eq ${FLAGS_TRUE} ]]; then | 242 if [[ ${FLAGS_enable_rootfs_verification} -eq ${FLAGS_TRUE} ]]; then |
243 enable_rootfs_verification_flag="--enable_rootfs_verification" | 243 enable_rootfs_verification_flag="--enable_rootfs_verification" |
244 # Comment out this section if you need to start testing vboot on arm. | |
245 if [[ "${ARCH}" = "arm" ]]; then | |
246 warn "ARM does not yet support --enable_rootfs_verification" | |
247 warn "Root filesystem verification has been disabled." | |
248 enable_rootfs_verification_flag= | |
249 FLAGS_enable_rootfs_verification_flag=${FLAGS_FALSE} | |
250 fi | |
251 fi | 244 fi |
252 | 245 |
253 # Hack to fix bug where x86_64 CHOST line gets incorrectly added. | 246 # Hack to fix bug where x86_64 CHOST line gets incorrectly added. |
254 # ToDo(msb): remove this hack. | 247 # ToDo(msb): remove this hack. |
255 PACKAGES_FILE="${BOARD_ROOT}/packages/Packages" | 248 PACKAGES_FILE="${BOARD_ROOT}/packages/Packages" |
256 sudo sed -e "s/CHOST: x86_64-pc-linux-gnu//" -i "${PACKAGES_FILE}" | 249 sudo sed -e "s/CHOST: x86_64-pc-linux-gnu//" -i "${PACKAGES_FILE}" |
257 | 250 |
258 # Handle existing directory. | 251 # Handle existing directory. |
259 if [[ -e "${OUTPUT_DIR}" ]]; then | 252 if [[ -e "${OUTPUT_DIR}" ]]; then |
260 if [[ ${FLAGS_replace} -eq ${FLAGS_TRUE} ]]; then | 253 if [[ ${FLAGS_replace} -eq ${FLAGS_TRUE} ]]; then |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" | 754 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" |
762 fi | 755 fi |
763 | 756 |
764 print_time_elapsed | 757 print_time_elapsed |
765 | 758 |
766 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" | 759 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" |
767 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" | 760 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" |
768 echo "To convert to VMWare image, INSIDE the chroot, do something like:" | 761 echo "To convert to VMWare image, INSIDE the chroot, do something like:" |
769 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" | 762 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" |
770 echo "from the scripts directory where you entered the chroot." | 763 echo "from the scripts directory where you entered the chroot." |
OLD | NEW |