summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/cr50/board.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h
index a397851e64..1e9e0f72d3 100644
--- a/board/cr50/board.h
+++ b/board/cr50/board.h
@@ -187,7 +187,12 @@
* This is pretty arbitrary, a rough estimate of what's required for smooth
* Cr50 operation.
*/
+#ifndef CRYPTO_TEST_SETUP
#define CONFIG_SHAREDMEM_MINIMUM_SIZE 5500
+#else
+/* Crypto tests require more statically allocated memory. */
+#define CONFIG_SHAREDMEM_MINIMUM_SIZE 5000
+#endif
/* Implement custom udelay, due to usec hwtimer imprecision. */
#define CONFIG_HW_SPECIFIC_UDELAY