summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-10-30 11:02:16 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-30 18:47:45 -0700
commit254174085a668e59c674c9c18215d97fa6fb2771 (patch)
treeba7b3e96748e4ec11356fd9e6f08d140ac7624b6
parent8a2d0a5de6fc03eeea79a65469b361ae0ca694c9 (diff)
downloadchrome-ec-254174085a668e59c674c9c18215d97fa6fb2771.tar.gz
hammer: Enable CONFIG_SHA256_UNROLLED in RO region
Makes RW verification a little faster (268ms vs 294ms), at no cost since RO still has enough space. Doesn't make any difference in time to active USB, as USB enumeration is still the bottleneck. BRANCH=none BUG=b:35647963 TEST=Boot hammer, check that [0.267707 RW verify OK] is better than without this patch ([0.294128 RW verify OK]). Change-Id: I7d6564226616bfa807a636198d53ca7b2ea7081a Signed-off-by: Nicolas Boichat <drinkcat@google.com> Reviewed-on: https://chromium-review.googlesource.com/744297 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--board/hammer/board.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/hammer/board.h b/board/hammer/board.h
index e45d365c78..9d5bbb833c 100644
--- a/board/hammer/board.h
+++ b/board/hammer/board.h
@@ -202,6 +202,9 @@
#endif
#define CONFIG_SHA256
+#ifdef SECTION_IS_RO
+#define CONFIG_SHA256_UNROLLED
+#endif
#define CONFIG_RWSIG_TYPE_RWSIG