summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Sukhomlinov <sukhomlinov@google.com>2021-10-28 11:04:16 -0700
committerCommit Bot <commit-bot@chromium.org>2021-10-28 19:24:29 +0000
commit5d72acabe14cd2d39cab5ff12cefdd8290e1b811 (patch)
treec95a9d302fc5ef71b6a5218cedd1040c6c64c823
parent4b9ea3ee28cefa233221d711c027eb192b9550f9 (diff)
downloadchrome-ec-release-R97-14324.B-cr50_stab.tar.gz
Fixing build error arm-eabi/bin/ld: Not enough space for shared memory. collect2: error: ld returned 1 exit status make: *** [Makefile.rules:472: build/cr50/RW/ec.RW.elf] Error 1 Crypto tests doesn't use much shared memory, but allocate more data statically. BUG=None TEST=make BOARD=cr50 CRYPTO_TEST=1 U2F_TEST=1 Signed-off-by: Vadim Sukhomlinov <sukhomlinov@google.com> Change-Id: Id0e01481c9fd481955c11b5d7ef63251585cfe48 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3251702 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Commit-Queue: Vadim Sukhomlinov <sukhomlinov@chromium.org>
-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