From cb39f9929b0cfc58c7cffc6ab16812cc605e7b4b Mon Sep 17 00:00:00 2001 From: Kenneth Waters Date: Wed, 18 Aug 2010 14:35:22 -0700 Subject: [PATCH] update_bootloaders.sh: Fix arm-generic build. BUG=None TEST=Passes bash -n Review URL: http://codereview.chromium.org/3161029 --- update_bootloaders.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/update_bootloaders.sh b/update_bootloaders.sh index 032f75777e..695d7ab701 100755 --- a/update_bootloaders.sh +++ b/update_bootloaders.sh @@ -207,8 +207,11 @@ elif [[ "${FLAGS_arch}" = "arm" ]]; then dm_table="" # TODO(wad) Clear it until we can fix root=/dev/dm-0 # Copy u-boot script to ESP partition - sudo mkdir -p "${ESP_FS_DIR}/u-boot" - sudo cp "${FLAGS_from}/boot-A.scr.uimg" "${ESP_FS_DIR}/u-boot/boot.scr.uimg" + if [ -r "${FLAGS_from}/boot-A.scr.uimg" ]; then + sudo mkdir -p "${ESP_FS_DIR}/u-boot" + sudo cp "${FLAGS_from}/boot-A.scr.uimg" \ + "${ESP_FS_DIR}/u-boot/boot.scr.uimg" + fi fi set +e