crossystem: x86: Write VbNv with mosys if using vboot2
authorDuncan Laurie <dlaurie@chromium.org>
Wed, 30 Mar 2016 16:38:54 +0000 (09:38 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Mon, 11 Apr 2016 21:36:41 +0000 (14:36 -0700)
commiteb0c8cc39bb268a7dc88ed616a564f4d46f77a2c
tree059f2abce61e2459dd4a2a33c92b9662828ecd64
parente98431f52ba7501823dc7ef28eb2dc9c7c927629
crossystem: x86: Write VbNv with mosys if using vboot2

If this is an x86 system using vboot2 then write VbNv data
to CMOS and also use mosys to write it directly to flash.

BUG=chrome-os-partner:51846
BRANCH=none
TEST=emerge-chell vboot_reference; emerge-oak vboot_reference
verify on chell that "crossystem dev_disable_request=1" is
written to both CMOS and flash.

Change-Id: Ifd5dcee4d401f8de36801c5c0a7db3255e618e28
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/336311
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
host/arch/x86/lib/crossystem_arch.c