Mbed TLS is now part of TrustedFirmware.org.

Cross compile for mips


Feb 5, 2016 11:14
Matheus Vasconcelos

Hi, I am trying to cross compile mbedTls for a Mips microcontroller (M5150), but i am getting some errors, someone ever try to do this ?

My host: Ubuntu. If someone could give me some help, I appreciate.

Thanks in advance.

 
Feb 5, 2016 11:23
Matheus Vasconcelos

Hi, I forgot to put the error:

Error: sys/dirent.h:10:2: error: #error "<dirent.h> not supported"

 
Apr 9, 2016 20:51
Simon Butcher

The header file dirent.h is used if you're using the filesystem support through using the configuration option MBEDTLS_FS_IO.

For a microcontroller, I doubt you have a filesystem present, so this is an aspect of the library you may have to port, and you probably need to comment out MBEDTLS_FS_IO in your config.hfile.

Have a look at our Knowledgebase article on Porting mbed TLS to a new environment or OS.