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

Side by Side Diff: build_image

Issue 3351016: Install make.globals and create make.profile directory (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: Add braces as per David 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
« 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 --root="${root_dev_dir}" --root-deps=rdeps \ 388 --root="${root_dev_dir}" --root-deps=rdeps \
389 --usepkgonly -uDNv chromeos-dev ${EMERGE_JOBS} 389 --usepkgonly -uDNv chromeos-dev ${EMERGE_JOBS}
390 390
391 if [[ $FLAGS_preserve -eq ${FLAGS_TRUE} ]] ; then 391 if [[ $FLAGS_preserve -eq ${FLAGS_TRUE} ]] ; then
392 # Clean out unused packages 392 # Clean out unused packages
393 sudo INSTALL_MASK="${INSTALL_MASK}" ${EMERGE_BOARD_CMD} \ 393 sudo INSTALL_MASK="${INSTALL_MASK}" ${EMERGE_BOARD_CMD} \
394 --root="${ROOT_FS_DIR}" --root-deps=rdeps \ 394 --root="${ROOT_FS_DIR}" --root-deps=rdeps \
395 --usepkgonly --depclean ${EMERGE_JOBS} 395 --usepkgonly --depclean ${EMERGE_JOBS}
396 fi 396 fi
397 397
398 # Install the bare necessary files so that the "emerge" command works
399 sudo cp ${root_dev_dir}/etc/make.globals ${ROOT_FS_DIR}/etc/
400 sudo mkdir -p ${ROOT_FS_DIR}/etc/make.profile
401
398 # Re-run ldconfig to fix /etc/ldconfig.so.cache. 402 # Re-run ldconfig to fix /etc/ldconfig.so.cache.
399 sudo /sbin/ldconfig -r "${ROOT_FS_DIR}" 403 sudo /sbin/ldconfig -r "${ROOT_FS_DIR}"
400 404
401 # Mark the image as a developer image (input to chromeos_startup). 405 # Mark the image as a developer image (input to chromeos_startup).
402 sudo mkdir -p "${ROOT_FS_DIR}/root" 406 sudo mkdir -p "${ROOT_FS_DIR}/root"
403 sudo touch "${ROOT_FS_DIR}/root/.dev_mode" 407 sudo touch "${ROOT_FS_DIR}/root/.dev_mode"
404 408
405 # Additional changes to developer image. 409 # Additional changes to developer image.
406 410
407 # Leave core files for developers to inspect. 411 # Leave core files for developers to inspect.
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}" 754 echo "Developer image created as ${DEVELOPER_IMAGE_NAME}"
751 fi 755 fi
752 756
753 print_time_elapsed 757 print_time_elapsed
754 758
755 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:"
756 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"
757 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:"
758 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}" 762 echo " ./image_to_vm.sh --from=${OUTSIDE_OUTPUT_DIR} --board=${BOARD}"
759 echo "from the scripts directory where you entered the chroot." 763 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