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 # --- BEGIN COMMON.SH BOILERPLATE --- | 9 # --- BEGIN COMMON.SH BOILERPLATE --- |
10 # Load common CrOS utilities. Inside the chroot this file is installed in | 10 # Load common CrOS utilities. Inside the chroot this file is installed in |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 add_efi_memmap | 161 add_efi_memmap |
162 boot=local | 162 boot=local |
163 noresume | 163 noresume |
164 noswap | 164 noswap |
165 i915.modeset=1 | 165 i915.modeset=1 |
166 cros_secure | 166 cros_secure |
167 kern_guid=%U | 167 kern_guid=%U |
168 tpm_tis.force=1 | 168 tpm_tis.force=1 |
169 tpm_tis.interrupts=0 | 169 tpm_tis.interrupts=0 |
170 nmi_watchdog=panic,lapic | 170 nmi_watchdog=panic,lapic |
| 171 i8042.nomux=1 |
171 EOF | 172 EOF |
172 WORK="${WORK} ${FLAGS_working_dir}/config.txt" | 173 WORK="${WORK} ${FLAGS_working_dir}/config.txt" |
173 | 174 |
174 bootloader_path="/lib64/bootstub/bootstub.efi" | 175 bootloader_path="/lib64/bootstub/bootstub.efi" |
175 kernel_image="${FLAGS_vmlinuz}" | 176 kernel_image="${FLAGS_vmlinuz}" |
176 | 177 |
177 sign_the_kernel=${FLAGS_TRUE} | 178 sign_the_kernel=${FLAGS_TRUE} |
178 elif [[ "${FLAGS_arch}" = "arm" ]]; then | 179 elif [[ "${FLAGS_arch}" = "arm" ]]; then |
179 cp "${FLAGS_working_dir}/boot.config" "${FLAGS_working_dir}/config.txt" | 180 cp "${FLAGS_working_dir}/boot.config" "${FLAGS_working_dir}/config.txt" |
180 WORK="${WORK} ${FLAGS_working_dir}/config.txt" | 181 WORK="${WORK} ${FLAGS_working_dir}/config.txt" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 info "Cleaning up temporary files: ${WORK}" | 292 info "Cleaning up temporary files: ${WORK}" |
292 rm ${WORK} | 293 rm ${WORK} |
293 rmdir ${FLAGS_working_dir} | 294 rmdir ${FLAGS_working_dir} |
294 fi | 295 fi |
295 | 296 |
296 info "Kernel partition image emitted: ${FLAGS_to}" | 297 info "Kernel partition image emitted: ${FLAGS_to}" |
297 | 298 |
298 if [[ -f ${FLAGS_rootfs_hash} ]]; then | 299 if [[ -f ${FLAGS_rootfs_hash} ]]; then |
299 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" | 300 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" |
300 fi | 301 fi |
OLD | NEW |