From e5500a319bd34abfd8b13851a4e758fad154f5d4 Mon Sep 17 00:00:00 2001 From: Ting Shen Date: Tue, 13 Dec 2016 11:29:47 +0800 Subject: [PATCH] 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 Tested-by: Ting Shen Reviewed-by: David Hendricks --- scripts/image_signing/set_gbb_flags.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/image_signing/set_gbb_flags.sh b/scripts/image_signing/set_gbb_flags.sh index ac96be6c7c..2872a83016 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