Alex Klein has uploaded this change for review.
flash-ap: Use standardized config names.
BUG=chromium:1045508
TEST=run_tests
Change-Id: I7b5b0a25a747e5d934e59c4f1448048466657299
---
M lib/firmware/ap_firmware.py
M lib/firmware/flash_ap.py
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/lib/firmware/ap_firmware.py b/lib/firmware/ap_firmware.py
index ff4c261..c485917 100644
--- a/lib/firmware/ap_firmware.py
+++ b/lib/firmware/ap_firmware.py
@@ -276,11 +276,13 @@
force_fast = module.is_fast_required
servo_force_command = None
- if hasattr(module, '__use_flashrom__') and module.__use_flashrom__:
+ if (hasattr(module, 'DEPLOY_SERVO_FORCE_FLASHROM') and
+ module.DEPLOY_SERVO_FORCE_FLASHROM):
servo_force_command = DeployConfig.FORCE_FLASHROM
ssh_force_command = None
- if hasattr(module, 'use_futility_ssh') and module.use_futility_ssh:
+ if (hasattr(module, 'DEPLOY_SSH_FORCE_FUTILITY') and
+ module.DEPLOY_SSH_FORCE_FUTILITY):
ssh_force_command = DeployConfig.FORCE_FUTILITY
return DeployConfig(
diff --git a/lib/firmware/flash_ap.py b/lib/firmware/flash_ap.py
index 904bee9..b3d6532 100755
--- a/lib/firmware/flash_ap.py
+++ b/lib/firmware/flash_ap.py
@@ -297,7 +297,8 @@
logging.notice('There is a known error with the board and servo type being '
'used, enabling --fast to bypass this problem.')
fast = True
- if hasattr(module, '__use_flashrom__') and module.__use_flashrom__:
+ if (hasattr(module, 'DEPLOY_SERVO_FORCE_FLASHROM') and
+ module.DEPLOY_SERVO_FORCE_FLASHROM):
# Futility needs VBoot to flash so boards without functioning VBoot
# can set this attribute to True to force the use of flashrom.
flashrom = True
@@ -334,8 +335,8 @@
"""
logging.info('Attempting to flash via ssh.')
# TODO(b/143241417): Can't use flashrom over ssh on wilco.
- if (hasattr(module, 'use_futility_ssh') and module.use_futility_ssh and
- flashrom):
+ if (hasattr(module, 'DEPLOY_SSH_FORCE_FUTILITY') and
+ module.DEPLOY_SSH_FORCE_FUTILITY and flashrom):
logging.warning('Flashing with flashrom over ssh on this device fails '
'consistently, flashing with futility instead.')
flashrom = False
To view, visit change 2139780. To unsubscribe, or for help writing mail filters, visit settings.
Alex Klein uploaded patch set #2 to this change.
flash-ap: Use standardized config names.
BUG=chromium:1045508
TEST=run_tests
Change-Id: I7b5b0a25a747e5d934e59c4f1448048466657299
---
M lib/firmware/ap_firmware.py
M lib/firmware/flash_ap.py
2 files changed, 8 insertions(+), 5 deletions(-)
To view, visit change 2139780. To unsubscribe, or for help writing mail filters, visit settings.
Patch set 2:Verified +1
Patch set 2:Code-Review +2
Alex Klein removed a vote from this change.
To view, visit change 2139780. To unsubscribe, or for help writing mail filters, visit settings.
Patch set 2:Commit-Queue +2