mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
extmod: Always use custom mbedtls error message code.
All ports that use mbedtls use the custom error messages in mp_mbedtls_errors.c. This commit simplifies the build so that ports don't need to explicitly add this file, it's now used by default when mbedtls is enabled. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -77,7 +77,6 @@ set(MICROPY_SOURCE_LIB
|
||||
${MICROPY_DIR}/lib/littlefs/lfs1_util.c
|
||||
${MICROPY_DIR}/lib/littlefs/lfs2.c
|
||||
${MICROPY_DIR}/lib/littlefs/lfs2_util.c
|
||||
${MICROPY_DIR}/lib/mbedtls_errors/mp_mbedtls_errors.c
|
||||
${MICROPY_DIR}/lib/oofatfs/ff.c
|
||||
${MICROPY_DIR}/lib/oofatfs/ffunicode.c
|
||||
${MICROPY_DIR}/shared/netutils/dhcpserver.c
|
||||
@@ -343,12 +342,6 @@ target_sources(${MICROPY_TARGET} PRIVATE
|
||||
|
||||
target_link_libraries(${MICROPY_TARGET} micropy_lib_mbedtls)
|
||||
|
||||
# Filter out library/error.c as we're using mp_mbedtls_errors.c instead.
|
||||
set_source_files_properties(${MICROPY_LIB_MBEDTLS_DIR}/library/error.c
|
||||
TARGET_DIRECTORY micropy_lib_mbedtls
|
||||
PROPERTIES HEADER_FILE_ONLY ON
|
||||
)
|
||||
|
||||
target_link_libraries(${MICROPY_TARGET} usermod)
|
||||
|
||||
target_include_directories(${MICROPY_TARGET} PRIVATE
|
||||
|
||||
Reference in New Issue
Block a user