Check FMAP when updating firmware environment variables

Environment variables are not always stored at the end of firmware
image. Let's check for RW_ENVIRONMENT section in FMAP before updating
environment variables.

BUG=chrome-os-partner:9570
TEST=Successfully updated variables for x86 firmware image.

Change-Id: Ifc8e3c4a7ded98ce8803f90a17bdfb9f07c9ff5e
Reviewed-on: https://gerrit.chromium.org/gerrit/22199
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Ready: Vic Yang <victoryang@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
1 file changed
tree: 16d87df5a55ccfc044e2dcbf513c1b6568023ac0
  1. cros_bundle/
  2. factory_setup/
  3. .gitignore
  4. OWNERS