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>
This commit is contained in:
Ting Shen
2016-12-13 11:29:47 +08:00
committed by chrome-bot
parent 8df7ed1453
commit e5500a319b

View File

@@ -60,7 +60,8 @@ check_write_protection() {
if ! crossystem "wpsw_boot?0"; then if ! crossystem "wpsw_boot?0"; then
hw_wp="on" hw_wp="on"
fi 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_disabled="$(echo "$wp_states" | grep "WP:.*is disabled.")"
local wp_zero_len="$(echo "$wp_states" | grep "WP:.*, len=0x00000000")" local wp_zero_len="$(echo "$wp_states" | grep "WP:.*, len=0x00000000")"
if [ -z "$wp_disabled" -a -z "$wp_zero_len" ]; then if [ -z "$wp_disabled" -a -z "$wp_zero_len" ]; then