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

Side by Side Diff: build_image

Issue 2896008: build_image: modify to not get devkeys from vboot_reference checkout (Closed) Base URL: ssh://git@chromiumos-git/crosutils.git
Patch Set: Fixed. Created 10 years, 5 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 # TODO(wad) mount the root fs to LOOP_DEV from the image 286 # TODO(wad) mount the root fs to LOOP_DEV from the image
287 trap "mount_gpt_cleanup" EXIT 287 trap "mount_gpt_cleanup" EXIT
288 ${SCRIPTS_DIR}/mount_gpt_image.sh --from "${OUTPUT_DIR}" \ 288 ${SCRIPTS_DIR}/mount_gpt_image.sh --from "${OUTPUT_DIR}" \
289 --image "${image_name}" -r "${ROOT_FS_DIR}" \ 289 --image "${image_name}" -r "${ROOT_FS_DIR}" \
290 -s "${STATEFUL_FS_DIR}" -e "${ESP_FS_DIR}" 290 -s "${STATEFUL_FS_DIR}" -e "${ESP_FS_DIR}"
291 291
292 sudo mount -o remount,ro "${ROOT_FS_DIR}" 292 sudo mount -o remount,ro "${ROOT_FS_DIR}"
293 root_dev=$(mount | grep -- "${ROOT_FS_DIR}" | cut -f1 -d' ' | tail -1) 293 root_dev=$(mount | grep -- "${ROOT_FS_DIR}" | cut -f1 -d' ' | tail -1)
294 294
295 DEVKEYSDIR="${SRC_ROOT}/platform/vboot_reference/tests/devkeys" 295 DEVKEYSDIR="/usr/share/vboot/devkeys"
296 296
297 # Builds the kernel partition image. The temporary files are kept around 297 # Builds the kernel partition image. The temporary files are kept around
298 # so that we can perform a load_kernel_test later on the final image. 298 # so that we can perform a load_kernel_test later on the final image.
299 ${SCRIPTS_DIR}/build_kernel_image.sh \ 299 ${SCRIPTS_DIR}/build_kernel_image.sh \
300 --arch="${ARCH}" \ 300 --arch="${ARCH}" \
301 --to="${OUTPUT_DIR}/vmlinuz.image" \ 301 --to="${OUTPUT_DIR}/vmlinuz.image" \
302 --hd_vblock="${OUTPUT_DIR}/vmlinuz_hd.vblock" \ 302 --hd_vblock="${OUTPUT_DIR}/vmlinuz_hd.vblock" \
303 --vmlinuz="${OUTPUT_DIR}/boot/vmlinuz" \ 303 --vmlinuz="${OUTPUT_DIR}/boot/vmlinuz" \
304 --working_dir="${OUTPUT_DIR}" \ 304 --working_dir="${OUTPUT_DIR}" \
305 --keep_work \ 305 --keep_work \
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" 697 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}"
698 fi 698 fi
699 699
700 print_time_elapsed 700 print_time_elapsed
701 701
702 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" 702 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:"
703 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" 703 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX"
704 echo "To convert to VMWare image, OUTSIDE the chroot, do something like:" 704 echo "To convert to VMWare image, OUTSIDE the chroot, do something like:"
705 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}" 705 echo " ./image_to_vmware.sh --from=${OUTSIDE_OUTPUT_DIR}"
706 echo "from the scripts directory where you entered the chroot." 706 echo "from the scripts directory where you entered the chroot."
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