-->
Page 1 of 1

Help compiling using esp-open-sdk

PostPosted: Mon May 13, 2019 8:35 am
by maverickchongo
Hi,

I compile the esp-non-os-sdk using esp-open-sdk, however, I want to make some changes to the mbedtls library but have had no luck as it doesn't seem to compile my changes.

Does anybody have experience with esp-open-sdk?

https://github.com/pfalcon/esp-open-sdk

Thanks in advace

Re: Help compiling using esp-open-sdk

PostPosted: Mon May 13, 2019 10:19 am
by davydnorris
What is it doing? It should compile OK.

The other approach is to just compile the toolchain and then use the mbedTLS that is shipped with the NonOS SDK (third_party directory) as your starting point

Re: Help compiling using esp-open-sdk

PostPosted: Tue May 14, 2019 7:07 am
by maverickchongo
Thanks for your answer @davydnorris.

So, I maybe didn't explain myself well, sorry. It does compile fine, but doesn't take my changes.
I am changing the following file:

third_party\include\mbedtls\config_esp.h

Then as a test I only enable tlsv1.1 (MBEDTLS_SSL_PROTO_TLS1_1) and disable (comment) the rest. However my mqtt continues using TLS1.2 to connect to the broker...

So not sure what exactly I need to change for this to get compiled...

Re: Help compiling using esp-open-sdk

PostPosted: Fri Sep 20, 2019 3:09 am
by eriksl
I think opensdk will download the original source nevertheless, ignoring your changes to the local copy.

Or, even more probable, it will skip compiling the part you have modified, because it was already compiled. Opensdk has a very crude way of determining whether a source needs to be compiled, something with hidden files (.xxx). You may need to remove some of them.