mirror of
https://github.com/micropython/micropython.git
synced 2025-07-21 13:01:10 +02:00
unix: Use the bare metal mbedTLS config in the coverage buiid.
This allows coverage to test MicroPython-specific features such as the tracked alloc cleanups added in the parent commit. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
committed by
Damien George
parent
97f444bfa0
commit
d642cce27a
@@ -32,7 +32,18 @@
|
||||
// Enable mbedtls modules
|
||||
#define MBEDTLS_TIMING_C
|
||||
|
||||
#if defined(MICROPY_UNIX_COVERAGE)
|
||||
// Test the "bare metal" memory management in the coverage build
|
||||
#define MICROPY_MBEDTLS_CONFIG_BARE_METAL (1)
|
||||
#endif
|
||||
|
||||
// Include common mbedtls configuration.
|
||||
#include "extmod/mbedtls/mbedtls_config_common.h"
|
||||
|
||||
#if defined(MICROPY_UNIX_COVERAGE)
|
||||
// See comment above, but fall back to the default platform entropy functions
|
||||
#undef MBEDTLS_ENTROPY_HARDWARE_ALT
|
||||
#undef MBEDTLS_NO_PLATFORM_ENTROPY
|
||||
#endif
|
||||
|
||||
#endif /* MICROPY_INCLUDED_MBEDTLS_CONFIG_H */
|
||||
|
Reference in New Issue
Block a user