diff options
author | Bill Richardson <wfrichar@chromium.org> | 2012-05-08 14:34:03 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2012-05-10 17:27:36 -0700 |
commit | 8101b7131651e344807d2bd0ec77542b3196a653 (patch) | |
tree | df058964eee0efdfe82cfa2bd0f7e6ef013c45b8 /Makefile.toolchain | |
parent | 058079977e3d94d05d40e44144549b9d4e391144 (diff) | |
download | chrome-ec-8101b7131651e344807d2bd0ec77542b3196a653.tar.gz |
Enable verified boot for EC firmware
BUG=chrome-os-partner:7459
TEST=manual
In the chroot:
cd src/platform/ec
make BOARD=link
The firmware image (build/link/ec.bin) is signed with dev-keys. Reflash the
EC and try it, and it should verify and reboot into RW A.
Additional tests (setting USE_RO_NORMAL, poking random values into VBLOCK_A
or FW_MAIN_A to force RW B to run, etc.) are left as an exercise for the
reader. I've done them and they work, though.
Change-Id: I29a23ea69aef02a11aebd4af3b043f6864723523
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r-- | Makefile.toolchain | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain index 1b55247ff5..537d9a2b82 100644 --- a/Makefile.toolchain +++ b/Makefile.toolchain @@ -1,3 +1,4 @@ +# -*- makefile -*- # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -28,7 +29,7 @@ CFLAGS_DEFINE=-DOUTDIR=$(out) -DCHIP=$(CHIP) -DTASKFILE=$(PROJECT).tasklist \ -DBOARD=$(BOARD) -DBOARD_$(BOARD) -DCORE=$(CORE) -DCHIP_$(CHIP) \ -DCHIP_VARIANT=$(CHIP_VARIANT) -DCHIP_VARIANT_$(CHIP_VARIANT) CPPFLAGS=$(CFLAGS_DEFINE) $(CFLAGS_INCLUDE) -CFLAGS=$(CPPFLAGS) $(CFLAGS_CPU) $(CFLAGS_DEBUG) $(CFLAGS_WARN) +CFLAGS=$(CPPFLAGS) $(CFLAGS_CPU) $(CFLAGS_DEBUG) $(CFLAGS_WARN) $(CFLAGS_y) BUILD_CFLAGS=$(CPPFLAGS) -O3 $(CFLAGS_DEBUG) $(CFLAGS_WARN) HOST_CFLAGS=$(CPPFLAGS) -O3 $(CFLAGS_DEBUG) $(CFLAGS_WARN) LDFLAGS=-nostdlib -X |