diff options
author | Mary Ruthven <mruthven@chromium.org> | 2016-01-05 14:59:05 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-01-06 05:22:40 -0800 |
commit | 46d78db74a0c14a99adc86b3a8b4536ce0c87365 (patch) | |
tree | 1d6b7944fa4b1cb8a34283d4374f6a0dd47423ee /host | |
parent | 0e5f54d79158f216edeb42bfe9c5cd6d35dc6e0d (diff) | |
download | vboot-46d78db74a0c14a99adc86b3a8b4536ce0c87365.tar.gz |
vboot2: Add try RO software sync flag
This flag will be used by the firmware updater to indicate that RO
software sync should be attempted.
BUG=chrome-os-partner:48703
BRANCH=None
TEST=make runtests
Change-Id: I42090ac47da45c724e66334648ab447ad3c21178
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/320621
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/crossystem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c index e2066cee..fd5cd9eb 100644 --- a/host/lib/crossystem.c +++ b/host/lib/crossystem.c @@ -540,6 +540,8 @@ int VbGetSystemPropertyInt(const char* name) { value = VbGetNvStorage(VBNV_FASTBOOT_UNLOCK_IN_FW); } else if (!strcasecmp(name, "boot_on_ac_detect")) { value = VbGetNvStorage(VBNV_BOOT_ON_AC_DETECT); + } else if (!strcasecmp(name, "try_ro_sync")) { + value = VbGetNvStorage(VBNV_TRY_RO_SYNC); } return value; @@ -674,6 +676,8 @@ int VbSetSystemPropertyInt(const char* name, int value) { return VbSetNvStorage_WithBackup(VBNV_FASTBOOT_UNLOCK_IN_FW, value); } else if (!strcasecmp(name, "boot_on_ac_detect")) { return VbSetNvStorage_WithBackup(VBNV_BOOT_ON_AC_DETECT, value); + } else if (!strcasecmp(name, "try_ro_sync")) { + return VbSetNvStorage_WithBackup(VBNV_TRY_RO_SYNC, value); } return -1; |