mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
Add amd64 recognition to build_kernel_image.sh
This causes the script to treat amd64 the same as x86. BUG=chromium-os:21284 TEST=./build_image for amd64-generic shouldn't generate an invalid architecture error Change-Id: I8f40a827684dde1258158d470a38623a8c936bca Reviewed-on: http://gerrit.chromium.org/gerrit/9963 Reviewed-by: Vince Laviano <vlaviano@chromium.org> Tested-by: Sonny Rao <sonnyrao@chromium.org> Commit-Ready: Sonny Rao <sonnyrao@chromium.org>
This commit is contained in:
parent
4b8a1ebb4d
commit
0679b368c9
@ -31,7 +31,7 @@ get_default_board
|
||||
|
||||
# Flags.
|
||||
DEFINE_string arch "x86" \
|
||||
"The boot architecture: arm or x86. (Default: x86)"
|
||||
"The boot architecture: arm, x86, or amd64. (Default: x86)"
|
||||
DEFINE_string to "/tmp/vmlinuz.image" \
|
||||
"The path to the kernel image to be created. (Default: /tmp/vmlinuz.image)"
|
||||
DEFINE_string hd_vblock "/tmp/vmlinuz_hd.vblock" \
|
||||
@ -148,7 +148,7 @@ EOF
|
||||
WORK="${WORK} ${FLAGS_working_dir}/boot.config"
|
||||
info "Emitted cross-platform boot params to ${FLAGS_working_dir}/boot.config"
|
||||
|
||||
if [[ "${FLAGS_arch}" = "x86" ]]; then
|
||||
if [ "${FLAGS_arch}" = "x86" -o "${FLAGS_arch}" = "amd64" ]; then
|
||||
# Legacy BIOS will use the kernel in the rootfs (via syslinux), as will
|
||||
# standard EFI BIOS (via grub, from the EFI System Partition). Chrome OS
|
||||
# BIOS will use a separate signed kernel partition, which we'll create now.
|
||||
|
Loading…
x
Reference in New Issue
Block a user