zephyr: config-rsa.h: remove copypasta
MCUboot doesn't need mbedTLS's entropy code (you don't need random numbers to check a digital signature), but it enables it. This causes really scary warnings when building entropy.c, since the test entropy source is enabled: [113/197] Building C object zephyr/ext/lib/crypto/mbedtls/CMakeFiles/ext__lib__crypto__mbedtls.dir/library/entropy.c.obj /home/mbolivar/src/zephyr/ext/lib/crypto/mbedtls/library/entropy.c:31:2: warning: #warning "**** WARNING! MBEDTLS_TEST_NULL_ENTROPY defined! " [-Wcpp] #warning "**** WARNING! MBEDTLS_TEST_NULL_ENTROPY defined! " ^~~~~~~ /home/mbolivar/src/zephyr/ext/lib/crypto/mbedtls/library/entropy.c:32:2: warning: #warning "**** THIS BUILD HAS NO DEFINED ENTROPY SOURCES " [-Wcpp] #warning "**** THIS BUILD HAS NO DEFINED ENTROPY SOURCES " ^~~~~~~ /home/mbolivar/src/zephyr/ext/lib/crypto/mbedtls/library/entropy.c:33:2: warning: #warning "**** THIS BUILD IS *NOT* SUITABLE FOR PRODUCTION USE " [-Wcpp] #warning "**** THIS BUILD IS *NOT* SUITABLE FOR PRODUCTION USE " ^~~~~~~ Delete the bits of the mbedTLS configuration that compile this file (along with some testing code we don't care about either) to clean up the warning. This looks like copy/paste code from the initial mbedTLS config import into MCUboot. Signed-off-by: Marti Bolivar <marti@foundries.io>
This commit is contained in:
parent
0e259097fb
commit
5de83b1e47
|
@ -48,14 +48,6 @@
|
|||
#define MBEDTLS_HAVE_ASM
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_MBEDTLS_TEST)
|
||||
#define MBEDTLS_SELF_TEST
|
||||
#define MBEDTLS_DEBUG_C
|
||||
#else
|
||||
#define MBEDTLS_ENTROPY_C
|
||||
#define MBEDTLS_TEST_NULL_ENTROPY
|
||||
#endif
|
||||
|
||||
#define MBEDTLS_RSA_C
|
||||
#define MBEDTLS_PKCS1_V21
|
||||
|
||||
|
|
Loading…
Reference in New Issue