summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2015-05-25 21:46:10 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-29 11:29:20 +0000
commitc180460febf4039c86b87ba708c8299749cbfdd6 (patch)
tree13f9dd770685ac500abea63fd0b3c1d06cc7253a /host
parentebf886b5fd3dd75a00205879f3847198ecf83bdd (diff)
downloadvboot-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')
-rw-r--r--host/lib/crossystem.c6
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;