Fix regression in 'update_kernel.sh' for Tegra2 boards.

This 'update_kernel.sh' script gratuitiously broke on ARM targets
because the bootloader file has been changed to 'bootloader.bin' from
its previous name.

TEST=Used the script with a small kernel change to my Arthur board.
BUG=none

Change-Id: I146f08256543ffe2c4c52995625b26a1b3f28318
Reviewed-on: http://gerrit.chromium.org/gerrit/1989
Reviewed-by: Olof Johansson <olofj@chromium.org>
Reviewed-by: Taylor Hutt <thutt@chromium.org>
Tested-by: Taylor Hutt <thutt@chromium.org>
This commit is contained in:
Taylor Hutt 2011-06-02 13:54:43 -07:00
parent fbc89da362
commit 60da642e64

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. # Copyright (c) 2009-2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
@ -87,7 +87,8 @@ function make_kernelimage() {
local bootloader_path local bootloader_path
local kernel_image local kernel_image
if [[ "${FLAGS_arch}" == "arm" ]]; then if [[ "${FLAGS_arch}" == "arm" ]]; then
bootloader_path="${SRC_ROOT}/build/images/${FLAGS_board}/latest/kernel.scr.uimg" name="bootloader.bin"
bootloader_path="${SRC_ROOT}/build/images/${FLAGS_board}/latest/${name}"
kernel_image="/build/${FLAGS_board}/boot/vmlinux.uimg" kernel_image="/build/${FLAGS_board}/boot/vmlinux.uimg"
else else
bootloader_path="/lib64/bootstub/bootstub.efi" bootloader_path="/lib64/bootstub/bootstub.efi"