From b2c81b12bb2ed3de607e130b06abd77631316f7f Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Thu, 23 Jun 2016 13:56:06 +0100 Subject: [PATCH] Added target_config.h as a custom header for yotta use --- include/mbedtls/config.h | 3 +++ yotta/data/adjust-config.sh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h index 1aa86bf1b..3b7c85b39 100644 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h @@ -2566,6 +2566,9 @@ /* \} name SECTION: Customisation configuration options */ +/* Target and application specific configurations */ +//#define YOTTA_CFG_MBEDTLS_USER_CONFIG_FILE "target_config.h" + /* * Allow user to override any previous default. * diff --git a/yotta/data/adjust-config.sh b/yotta/data/adjust-config.sh index 170d3070a..6580c0900 100755 --- a/yotta/data/adjust-config.sh +++ b/yotta/data/adjust-config.sh @@ -14,6 +14,10 @@ conf() { $SCRIPT -f $FILE $@ } + +# Set the target specific header +conf set YOTTA_CFG_MBEDTLS_USER_CONFIG_FILE \"target_config.h\" + # not supported on mbed OS, nor used by mbed Client conf unset MBEDTLS_NET_C conf unset MBEDTLS_TIMING_C