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

Side by Side Diff: image_to_vm.sh

Issue 3113029: pass --board to mod_image_for_test (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: Created 10 years, 4 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) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 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 convert the output of build_image.sh to a VMware image and write a 7 # Script to convert the output of build_image.sh to a VMware image and write a
8 # corresponding VMware config file. 8 # corresponding VMware config file.
9 9
10 # Load common constants. This should be the first executable line. 10 # Load common constants. This should be the first executable line.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 fi 96 fi
97 97
98 # Check for install shim. 98 # Check for install shim.
99 if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ] ; then 99 if [ ${FLAGS_factory_install} -eq ${FLAGS_TRUE} ] ; then
100 EXTRA_ARGS="--factory_install" 100 EXTRA_ARGS="--factory_install"
101 fi 101 fi
102 102
103 # Modify it. Pass --yes so that mod_image_for_test.sh won't ask us if we 103 # Modify it. Pass --yes so that mod_image_for_test.sh won't ask us if we
104 # really want to modify the image; the user gave their assent already with 104 # really want to modify the image; the user gave their assent already with
105 # --test-image and the original image is going to be preserved. 105 # --test-image and the original image is going to be preserved.
106 "${SCRIPTS_DIR}/mod_image_for_test.sh" --image \ 106 "${SCRIPTS_DIR}/mod_image_for_test.sh" --board=${FLAGS_board} --image \
107 "${FLAGS_from}/chromiumos_test_image.bin" ${EXTRA_ARGS} --yes 107 "${FLAGS_from}/chromiumos_test_image.bin" ${EXTRA_ARGS} --yes
108 echo "Done with mod_image_for_test." 108 echo "Done with mod_image_for_test."
109 else 109 else
110 echo "Using cached test image." 110 echo "Using cached test image."
111 fi 111 fi
112 SRC_IMAGE="${FLAGS_from}/chromiumos_test_image.bin" 112 SRC_IMAGE="${FLAGS_from}/chromiumos_test_image.bin"
113 echo "Source test image is: ${SRC_IMAGE}" 113 echo "Source test image is: ${SRC_IMAGE}"
114 fi 114 fi
115 115
116 # Memory units are in MBs 116 # Memory units are in MBs
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 guestOS = \"otherlinux\" 263 guestOS = \"otherlinux\"
264 ethernet0.addressType = \"generated\" 264 ethernet0.addressType = \"generated\"
265 floppy0.present = \"FALSE\"" 265 floppy0.present = \"FALSE\""
266 266
267 if [[ "${FLAGS_make_vmx}" = "${FLAGS_TRUE}" ]]; then 267 if [[ "${FLAGS_make_vmx}" = "${FLAGS_TRUE}" ]]; then
268 echo "${VMX_CONFIG}" > "${FLAGS_to}/${FLAGS_vmx}" 268 echo "${VMX_CONFIG}" > "${FLAGS_to}/${FLAGS_vmx}"
269 echo "Wrote the following config to: ${FLAGS_to}/${FLAGS_vmx}" 269 echo "Wrote the following config to: ${FLAGS_to}/${FLAGS_vmx}"
270 echo "${VMX_CONFIG}" 270 echo "${VMX_CONFIG}"
271 fi 271 fi
272 272
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