diff options
author | Furquan Shaikh <furquan@google.com> | 2015-05-25 21:46:10 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-05-29 11:29:20 +0000 |
commit | c180460febf4039c86b87ba708c8299749cbfdd6 (patch) | |
tree | 13f9dd770685ac500abea63fd0b3c1d06cc7253a /host/lib/crossystem.c | |
parent | ebf886b5fd3dd75a00205879f3847198ecf83bdd (diff) | |
download | vboot-c180460febf4039c86b87ba708c8299749cbfdd6.tar.gz |
fastboot: Add fastboot related flags to nvstorage
Use unused offset 8 for fastboot related flags.
BUG=chrome-os-partner:40196
BRANCH=None
TEST=Compiles successfully.
Change-Id: I6df0985924ba80cdcb68bb6b7658bf962f01287f
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/273180
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Furquan Shaikh <furquan@chromium.org>
Trybot-Ready: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'host/lib/crossystem.c')
-rw-r--r-- | host/lib/crossystem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c index cb6b9602..8ac37cc7 100644 --- a/host/lib/crossystem.c +++ b/host/lib/crossystem.c @@ -534,6 +534,10 @@ int VbGetSystemPropertyInt(const char* name) { } else if (!strcasecmp(name,"recovery_reason")) { value = GetVdatInt(VDAT_INT_RECOVERY_REASON); } + /* Fastboot-related parameters */ + else if (!strcasecmp(name, "fastboot_unlock_in_fw")) { + value = VbGetNvStorage(VBNV_FASTBOOT_UNLOCK_IN_FW); + } return value; } @@ -657,6 +661,8 @@ int VbSetSystemPropertyInt(const char* name, int value) { return VbSetNvStorage_WithBackup(VBNV_DEV_BOOT_SIGNED_ONLY, value); } else if (!strcasecmp(name,"dev_boot_fastboot_full_cap")) { return VbSetNvStorage_WithBackup(VBNV_DEV_BOOT_FASTBOOT_FULL_CAP, value); + } else if (!strcasecmp(name, "fastboot_unlock_in_fw")) { + return VbSetNvStorage_WithBackup(VBNV_FASTBOOT_UNLOCK_IN_FW, value); } return -1; |