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

Unified Diff: remote_access.sh

Issue 6031005: update_kernel: first cut at arm support (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 10 years 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 | update_kernel.sh » ('j') | update_kernel.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remote_access.sh
diff --git a/remote_access.sh b/remote_access.sh
index 794deff8e755ed0a98a35513016e86c3239cdbad..3d44b1a0d0f34c5565d2ef1e5ed654c39231e256 100644
--- a/remote_access.sh
+++ b/remote_access.sh
@@ -68,6 +68,17 @@ function learn_board() {
info "Target reports board is ${FLAGS_board}"
}
+function learn_arch() {
+ [ -n "${FLAGS_arch}" ] && return
+ remote_sh uname -m
+ FLAGS_arch=$(echo "${REMOTE_OUT}" | sed s/armv7l/arm/g)
+ if [ -z "${FLAGS_arch}" ]; then
+ error "Arch required"
+ exit 1
+ fi
+ info "Target reports arch is ${FLAGS_arch}"
+}
+
function remote_reboot {
info "Rebooting."
remote_sh "touch /tmp/awaiting_reboot; reboot"
« no previous file with comments | « no previous file | update_kernel.sh » ('j') | update_kernel.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698