summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2015-08-02 02:19:20 (GMT)
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-11 07:24:02 (GMT)
commit8849e5b212b60b57651bb91da175563179c917c8 (patch)
tree4dc97602a094ab7f8d618283c2deecf5968fecc7
parent2011c7e539274a1b4dc81554dc6f082f718bdbaf (diff)
downloaddepthcharge-stabilize-7356.B.tar.gz
depthcharge-stabilize-7356.B.tar.xz
fastboot: Add alias command "oem Powerdown".stabilize-7356.B
The "powerdown" is defined in fastboot protocol but most fastboot clients don't support it. Instead of asking every client to upgrade, we want to make an alias in the oem commands so most clients can run the command without problem. BUG=chrome-os-partner:42535 TEST=emerge-smaug depthcharge chromeos-bootimage; fastboot oem Powerdown BRANCH=smaug Change-Id: I34bfcedd74d211bd42cb5e7e442b0609f6b6551d Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/291891 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
-rw-r--r--src/fastboot/fastboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fastboot/fastboot.c b/src/fastboot/fastboot.c
index 0fd585f..736d1f7 100644
--- a/src/fastboot/fastboot.c
+++ b/src/fastboot/fastboot.c
@@ -1002,6 +1002,7 @@ const struct fastboot_func fb_func_table[] = {
{ NAME_NO_ARGS("oem unlock"), FB_ID_UNLOCK, fb_unlock},
{ NAME_NO_ARGS("oem lock"), FB_ID_LOCK, fb_lock},
/* OEM cmd names starting in uppercase imply vendor/device specific. */
+ { NAME_NO_ARGS("oem Powerdown"), FB_ID_POWERDOWN, fb_powerdown},
{ NAME_ARGS("oem Setenv", ' '), FB_ID_SETENV, fb_setenv}
};