bluekitchen / btstack

Dual-mode Bluetooth stack, with small memory footprint.
http://bluekitchen-gmbh.com
Other
1.74k stars 618 forks source link

MBEDTLS_CONFIG_FILE (cosmetics) #484

Closed amorniroli closed 1 year ago

amorniroli commented 1 year ago

Is your feature request related to a problem? Please describe. Let's say the mbedtls repository is used as submodule. Default config file (e.g. mbedtls-3.4.0\include\mbedtls\mbedtls_config.h) may be bypassed defining MBEDTLS_CONFIG_FILE, without change the submodule contents.

Each mbedtls file have the following:

#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/mbedtls_config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif

Describe the solution you'd like Apply the same to file btstack_crypto.c, , in order to be able to compile without editing the original config file (that is there just as a template reference).

Describe alternatives you've considered /

Additional context /

mringwal commented 1 year ago

Sure, makes sense. Please try 72c3a9e

amorniroli commented 1 year ago

Sure, makes sense. Please try 72c3a9e

Sorry for the late reply, I wrote on friday evening and I totally forgot about it :)

The https://github.com/bluekitchen/btstack/commit/72c3a9edf416103e9c70b332ffd52431ba0dfd21 resolved!