简体   繁体   English

在裸机上交叉编译 openssl

[英]Cross compile openssl on bare metal

I'm trying to cross compile openssl using the corresponding gcc (arm-none-eabi-5_4-2016q2) for a cortex m3 machine.我正在尝试使用对应的 gcc (arm-none-eabi-5_4-2016q2) 为 cortex m3 机器交叉编译 openssl。 The machine should have the ability to do TCP request and we'd like to do HTTPS at the end of the day.机器应该有能力做 TCP 请求,我们希望在一天结束时做 HTTPS。

During the cross compiling, at the make step, I have encountered the error saying some struct that should be defined in dirent.h aren't, and as I checked more closely, it turns out that this compiler has only an otherwise empty dirent.h other than error printing.在交叉编译期间,在 make 步骤中,我遇到了错误,指出应该在 dirent.h 中定义的某些结构不是,当我更仔细地检查时,结果发现该编译器只有一个空的 dirent。 h 错误打印除外。

Obviously the machine will be running without dirent.h.显然,机器将在没有 dirent.h 的情况下运行。 So my question is, can I still compile this openssl for the machine?所以我的问题是,我还能为机器编译这个 openssl 吗? Could it be an option that I write the corresponding things myself in case the header is necessary?如果需要标题,是否可以选择我自己编写相应的内容? But it's just about directories, how related is it to SSL anyways?但这只是关于目录,它与 SSL 有多大关系?

Here are two options:这里有两个选项:

And can be compared at Comparison of TLS {https://en.wikipedia.org/wiki/Comparison_of_TLS_implementations}并且可以在 TLS 的比较中进行比较 {https://en.wikipedia.org/wiki/Comparison_of_TLS_implementations}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM