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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 | 753 |
754 update_dev_packages ${DEVELOPER_IMAGE_NAME} | 754 update_dev_packages ${DEVELOPER_IMAGE_NAME} |
755 make_image_bootable ${DEVELOPER_IMAGE_NAME} | 755 make_image_bootable ${DEVELOPER_IMAGE_NAME} |
756 fi | 756 fi |
757 | 757 |
758 # Clean up temporary files. | 758 # Clean up temporary files. |
759 rm -f "${ROOT_FS_IMG}" "${STATEFUL_FS_IMG}" "${OUTPUT_DIR}/vmlinuz.image" \ | 759 rm -f "${ROOT_FS_IMG}" "${STATEFUL_FS_IMG}" "${OUTPUT_DIR}/vmlinuz.image" \ |
760 "${ESP_FS_IMG}" "${OEM_FS_IMG}" "${OUTPUT_DIR}/vmlinuz_hd.vblock" | 760 "${ESP_FS_IMG}" "${OEM_FS_IMG}" "${OUTPUT_DIR}/vmlinuz_hd.vblock" |
761 rmdir "${ROOT_FS_DIR}" "${STATEFUL_FS_DIR}" "${OEM_FS_DIR}" "${ESP_FS_DIR}" | 761 rmdir "${ROOT_FS_DIR}" "${STATEFUL_FS_DIR}" "${OEM_FS_DIR}" "${ESP_FS_DIR}" |
762 | 762 |
| 763 # Create a 'latest' link |
| 764 rm -f ${FLAGS_output_root}/${FLAGS_board}/latest |
| 765 ln -s $(basename ${OUTPUT_DIR}) ${FLAGS_output_root}/${FLAGS_board}/latest |
| 766 |
763 echo "Done. Image created in ${OUTPUT_DIR}" | 767 echo "Done. Image created in ${OUTPUT_DIR}" |
764 echo "Chromium OS image created as ${PRISTINE_IMAGE_NAME}" | 768 echo "Chromium OS image created as ${PRISTINE_IMAGE_NAME}" |
765 if [ "${FLAGS_withdev}" -eq "${FLAGS_TRUE}" ]; then | 769 if [ "${FLAGS_withdev}" -eq "${FLAGS_TRUE}" ]; then |
766 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" | 770 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" |
767 fi | 771 fi |
768 | 772 |
769 print_time_elapsed | 773 print_time_elapsed |
770 | 774 |
771 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" | 775 echo "To copy to USB keyfob, OUTSIDE the chroot, do something like:" |
772 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" | 776 echo " ./image_to_usb.sh --from=${OUTSIDE_OUTPUT_DIR} --to=/dev/sdX" |
773 echo "To convert to VMWare image, INSIDE the chroot, do something like:" | 777 echo "To convert to VMWare image, INSIDE the chroot, do something like:" |
774 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR}" | 778 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR}" |
775 echo "from the scripts directory where you entered the chroot." | 779 echo "from the scripts directory where you entered the chroot." |
OLD | NEW |