Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: update_bootloaders.sh

Issue 3161029: update_bootloaders.sh: Fix arm-generic build. (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_bootloaders.sh
diff --git a/update_bootloaders.sh b/update_bootloaders.sh
index 032f75777efb81608a1c3f84c62aa670fb62f97f..695d7ab7014357da9974464d2b539473894e6039 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698