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

Side by Side Diff: build_image

Issue 3344008: Don't kill sdcards with boot_tries (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: rebase Created 10 years, 3 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 | 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 644
645 # Create the GPT-formatted image. 645 # Create the GPT-formatted image.
646 ${SCRIPTS_DIR}/build_gpt.sh \ 646 ${SCRIPTS_DIR}/build_gpt.sh \
647 --arch=${ARCH} \ 647 --arch=${ARCH} \
648 --board=${FLAGS_board} \ 648 --board=${FLAGS_board} \
649 --arm_extra_bootargs="${FLAGS_arm_extra_bootargs}" \ 649 --arm_extra_bootargs="${FLAGS_arm_extra_bootargs}" \
650 --rootfs_partition_size=${FLAGS_rootfs_partition_size} \ 650 --rootfs_partition_size=${FLAGS_rootfs_partition_size} \
651 "${OUTPUT_DIR}" \ 651 "${OUTPUT_DIR}" \
652 "${OUTPUT_DIR}/${image_name}" 652 "${OUTPUT_DIR}/${image_name}"
653 653
654 # Pre-set "sucessful" bit in gpt, so we will never mark-for-death
655 # a partition on an SDCard/USB stick.
656 ${GPT} add -i 2 -S 1 "${OUTPUT_DIR}/${image_name}"
657
654 trap - EXIT 658 trap - EXIT
655 } 659 }
656 660
657 # Create the output directory. 661 # Create the output directory.
658 mkdir -p "${OUTPUT_DIR}" 662 mkdir -p "${OUTPUT_DIR}"
659 mkdir -p "${ROOT_FS_DIR}" 663 mkdir -p "${ROOT_FS_DIR}"
660 mkdir -p "${STATEFUL_FS_DIR}" 664 mkdir -p "${STATEFUL_FS_DIR}"
661 mkdir -p "${OEM_FS_DIR}" 665 mkdir -p "${OEM_FS_DIR}"
662 mkdir -p "${ESP_FS_DIR}" 666 mkdir -p "${ESP_FS_DIR}"
663 667
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" 743 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}"
740 fi 744 fi
741 745
742 print_time_elapsed 746 print_time_elapsed
743 747
744 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" 748 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:"
745 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" 749 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX"
746 echo "To convert to VMWare image, INSIDE the chroot, do something like:" 750 echo "To convert to VMWare image, INSIDE the chroot, do something like:"
747 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" 751 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}"
748 echo "from the scripts directory where you entered the chroot." 752 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