summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian J. Nemec <bnemec@chromium.org>2020-04-20 13:01:28 -0700
committerRuben Rodriguez Buchillon <coconutruben@chromium.org>2020-05-08 17:44:05 +0000
commit726ca5624f1de3aed6e5e89d8bc18c8ae49bf373 (patch)
tree3f8de56cbc86b5f0b32c76408b1f4daa498f0188
parent1c1ce953d6cc50082140053e62815a8f1f4d817b (diff)
downloadchrome-ec-726ca5624f1de3aed6e5e89d8bc18c8ae49bf373.tar.gz
servo_updater: Re-add board name's to servo_updater
Adds the board names back into servo_updater. These are used by manufacturing scripts in hdctools to identify which strings to pass to servo_updater. BUG=b:154527792 TEST=sudo emerge chromeos-base/ec-devutils Verified that emerge was successful TEST=sudo servo_updater Verified that the ServoV4 configuration is default TEST=sudo mfg_c2d2 Verified that C2D2 is used as target Change-Id: I75f7a8bcdd2c87951917f7ea3ec57f9288fda862 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2157570 Tested-by: Brian Nemec <bnemec@chromium.org> Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org> Commit-Queue: Brian Nemec <bnemec@chromium.org>
-rwxr-xr-xextra/usb_updater/servo_updater.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/extra/usb_updater/servo_updater.py b/extra/usb_updater/servo_updater.py
index f1bf0a8a67..20f0245f77 100755
--- a/extra/usb_updater/servo_updater.py
+++ b/extra/usb_updater/servo_updater.py
@@ -21,7 +21,11 @@ import ecusb.tiny_servo_common as c
class ServoUpdaterException(Exception):
"""Raised on exceptions generated by servo_updater."""
-DEFAULT_BOARD = "servo_v4"
+BOARD_C2D2 = 'c2d2'
+BOARD_SERVO_MICRO = 'servo_micro'
+BOARD_SERVO_V4 = 'servo_v4'
+BOARD_SWEETBERRY = 'sweetberry'
+DEFAULT_BOARD = BOARD_SERVO_V4
DEFAULT_BASE_PATH = '/usr/'
TEST_IMAGE_BASE_PATH = '/usr/local/'