From 5d72acabe14cd2d39cab5ff12cefdd8290e1b811 Mon Sep 17 00:00:00 2001 From: Vadim Sukhomlinov Date: Thu, 28 Oct 2021 11:04:16 -0700 Subject: cr50: adjust shared memory for CRYPTO_TEST=1 build 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 Change-Id: Id0e01481c9fd481955c11b5d7ef63251585cfe48 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3251702 Reviewed-by: Vadim Sukhomlinov Reviewed-by: Vadim Bendebury Tested-by: Vadim Sukhomlinov Commit-Queue: Vadim Sukhomlinov --- board/cr50/board.h | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1