Skip to content

Commit

Permalink
[Telink] Cleanup MbedTLS configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
andriy-bilynskyy committed Dec 19, 2024
1 parent a58a972 commit ad2bf80
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 54 deletions.
2 changes: 1 addition & 1 deletion config/telink/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ matter_add_cxxflags("${ZEPHYR_CFLAGS_CC}")
zephyr_get_gnu_cpp_standard(ZEPHYR_GNU_CPP_STD)
matter_add_cxxflags(${ZEPHYR_GNU_CPP_STD})

matter_add_flags(-DMBEDTLS_USER_CONFIG_FILE=<telink-mbedtls-config.h>)
matter_add_flags(-DMBEDTLS_USER_CONFIG_FILE=<${CONFIG_MBEDTLS_CFG_FILE}>)

# Set up custom OpenThread configuration

Expand Down
18 changes: 12 additions & 6 deletions config/telink/chip-module/Kconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,6 @@ config CHIP_ENABLE_PAIRING_AUTOSTART
config MBEDTLS
default y

config MBEDTLS_USER_CONFIG_ENABLE
default y

config MBEDTLS_USER_CONFIG_FILE
default "telink-mbedtls-config.h"

config MBEDTLS_ENTROPY_POLL_ZEPHYR
default y

Expand All @@ -451,6 +445,18 @@ config MBEDTLS_ECDH_C
config MBEDTLS_ECDSA_C
default y

config MBEDTLS_HKDF_C
default y

config MBEDTLS_PKCS5_C
default y

config MBEDTLS_X509_CSR_WRITE_C
default y

config MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
default y

# Disable not used shell modules

config SHELL_WILDCARD
Expand Down
47 changes: 0 additions & 47 deletions src/platform/telink/telink-mbedtls-config.h

This file was deleted.

0 comments on commit ad2bf80

Please sign in to comment.