summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2016-12-13 11:29:47 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2016-12-21 03:20:37 +0000
commit7f6aff356eaa65bac62eab61b9a612b37816ee09 (patch)
tree45fed4672d9377ed331450edc61c6641e9b4f645
parent7d0dcfed7dc7cc5339d692ffdd9d5d28ecf4de8f (diff)
downloadvboot-7f6aff356eaa65bac62eab61b9a612b37816ee09.tar.gz
set_gbb_flags: add '-p host' to flashrom command
BRANCH=none BUG=chrome-os-partner:60894 TEST=set_gbb_flags 0 Change-Id: I22f372590bfe7705d4312588f971ad37f229a216 Reviewed-on: https://chromium-review.googlesource.com/418519 Commit-Ready: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org> (cherry picked from commit e5500a319bd34abfd8b13851a4e758fad154f5d4) Reviewed-on: https://chromium-review.googlesource.com/422672 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
-rwxr-xr-xscripts/image_signing/set_gbb_flags.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/image_signing/set_gbb_flags.sh b/scripts/image_signing/set_gbb_flags.sh
index ac96be6c..2872a830 100755
--- a/scripts/image_signing/set_gbb_flags.sh
+++ b/scripts/image_signing/set_gbb_flags.sh
@@ -60,7 +60,8 @@ check_write_protection() {
if ! crossystem "wpsw_boot?0"; then
hw_wp="on"
fi
- local wp_states="$(flashrom --wp-status 2>/dev/null | grep WP)"
+ local wp_states="$(flashrom $FLASHROM_COMMON_OPT --wp-status 2>/dev/null \
+ | grep WP)"
local wp_disabled="$(echo "$wp_states" | grep "WP:.*is disabled.")"
local wp_zero_len="$(echo "$wp_states" | grep "WP:.*, len=0x00000000")"
if [ -z "$wp_disabled" -a -z "$wp_zero_len" ]; then