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

Side by Side Diff: build_kernel_image.sh

Issue 3493004: make_image: Fake vmlinuz_hd.vblock on ARM. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: Update comment. 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 | « bin/cros_make_image_bootable ('k') | 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 # Helper script that generates the signed kernel image 7 # Helper script that generates the signed kernel image
8 8
9 . "$(dirname "$0")/common.sh" 9 . "$(dirname "$0")/common.sh"
10 10
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 if [ $(stat -c %s "${kernel_script_img}") -gt $((512 * ${script_size})) ] 219 if [ $(stat -c %s "${kernel_script_img}") -gt $((512 * ${script_size})) ]
220 then 220 then
221 echo 'Kernel script too large for reserved space.' 221 echo 'Kernel script too large for reserved space.'
222 exit 1 222 exit 1
223 fi 223 fi
224 224
225 # Assemble image 225 # Assemble image
226 rm -f "${FLAGS_to}" 226 rm -f "${FLAGS_to}"
227 dd if="${kernel_script_img}" of="${FLAGS_to}" bs=512 count="${script_size}" 227 dd if="${kernel_script_img}" of="${FLAGS_to}" bs=512 count="${script_size}"
228 dd if="${kernel_image}" of="${FLAGS_to}" bs=512 seek="${script_size}" 228 dd if="${kernel_image}" of="${FLAGS_to}" bs=512 seek="${script_size}"
229
230 # TODO: HACK: Until the kernel partition contains a signed image, create a
231 # phony hd.vblock to keep chromeos-install and cros_generate_update_paload
232 # working.
233 dd if="${FLAGS_to}" of="${FLAGS_hd_vblock}" bs=64K count=1
229 else 234 else
230 error "Unknown arch: ${FLAGS_arch}" 235 error "Unknown arch: ${FLAGS_arch}"
231 fi 236 fi
232 237
233 set +e # cleanup failure is a-ok 238 set +e # cleanup failure is a-ok
234 239
235 if [[ ${FLAGS_keep_work} -eq ${FLAGS_FALSE} ]]; then 240 if [[ ${FLAGS_keep_work} -eq ${FLAGS_FALSE} ]]; then
236 info "Cleaning up temporary files: ${WORK}" 241 info "Cleaning up temporary files: ${WORK}"
237 rm ${WORK} 242 rm ${WORK}
238 rmdir ${FLAGS_working_dir} 243 rmdir ${FLAGS_working_dir}
239 fi 244 fi
240 245
241 info "Kernel partition image emitted: ${FLAGS_to}" 246 info "Kernel partition image emitted: ${FLAGS_to}"
242 247
243 if [[ -f ${FLAGS_rootfs_hash} ]]; then 248 if [[ -f ${FLAGS_rootfs_hash} ]]; then
244 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" 249 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}"
245 fi 250 fi
OLDNEW
« no previous file with comments | « bin/cros_make_image_bootable ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698