OLD | NEW |
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 add_efi_memmap | 129 add_efi_memmap |
130 boot=local | 130 boot=local |
131 rootwait | 131 rootwait |
132 ro | 132 ro |
133 noresume | 133 noresume |
134 noswap | 134 noswap |
135 i915.modeset=1 | 135 i915.modeset=1 |
136 loglevel=7 | 136 loglevel=7 |
137 cros_secure | 137 cros_secure |
138 kern_guid=%U | 138 kern_guid=%U |
| 139 tpm_tis.force=1 |
| 140 tpm_tis.interrupts=0 |
139 EOF | 141 EOF |
140 WORK="${WORK} ${FLAGS_working_dir}/config.txt" | 142 WORK="${WORK} ${FLAGS_working_dir}/config.txt" |
141 | 143 |
142 # We sign the image with the recovery_key, because this is what goes onto the | 144 # We sign the image with the recovery_key, because this is what goes onto the |
143 # USB key. We can only boot from the USB drive in recovery mode. | 145 # USB key. We can only boot from the USB drive in recovery mode. |
144 # For dev install shim, we need to use the installer keyblock instead of | 146 # For dev install shim, we need to use the installer keyblock instead of |
145 # the recovery keyblock because of the difference in flags. | 147 # the recovery keyblock because of the difference in flags. |
146 if [ ${FLAGS_use_dev_keys} -eq ${FLAGS_TRUE} ]; then | 148 if [ ${FLAGS_use_dev_keys} -eq ${FLAGS_TRUE} ]; then |
147 USB_KEYBLOCK=installer_kernel.keyblock | 149 USB_KEYBLOCK=installer_kernel.keyblock |
148 info "DEBUG: use dev install signing key" | 150 info "DEBUG: use dev install signing key" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 info "Cleaning up temporary files: ${WORK}" | 243 info "Cleaning up temporary files: ${WORK}" |
242 rm ${WORK} | 244 rm ${WORK} |
243 rmdir ${FLAGS_working_dir} | 245 rmdir ${FLAGS_working_dir} |
244 fi | 246 fi |
245 | 247 |
246 info "Kernel partition image emitted: ${FLAGS_to}" | 248 info "Kernel partition image emitted: ${FLAGS_to}" |
247 | 249 |
248 if [[ -f ${FLAGS_rootfs_hash} ]]; then | 250 if [[ -f ${FLAGS_rootfs_hash} ]]; then |
249 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" | 251 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" |
250 fi | 252 fi |
OLD | NEW |