diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h index 3b7c85b39..8e263b04a 100644 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h @@ -2567,7 +2567,11 @@ /* \} name SECTION: Customisation configuration options */ /* Target and application specific configurations */ -//#define YOTTA_CFG_MBEDTLS_USER_CONFIG_FILE "target_config.h" +//#define YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE "mbedtls/target_config.h" + +#if defined(TARGET_LIKE_MBED) && defined(YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE) +#include YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE +#endif /* * Allow user to override any previous default. diff --git a/yotta/data/adjust-config.sh b/yotta/data/adjust-config.sh index 6580c0900..3fa84908f 100755 --- a/yotta/data/adjust-config.sh +++ b/yotta/data/adjust-config.sh @@ -16,7 +16,7 @@ conf() { # Set the target specific header -conf set YOTTA_CFG_MBEDTLS_USER_CONFIG_FILE \"target_config.h\" +conf set YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE \"mbedtls/target_config.h\" # not supported on mbed OS, nor used by mbed Client conf unset MBEDTLS_NET_C