← index #18319Issue #2191
Related · high · value 1.740
QUERY · ISSUE

ports/unix: Allow building and linking dynamically against libmbedtls on Linux

openby aylen384opened 2025-10-22updated 2025-10-22
enhancement

Description

It would be nice if micropython could be built against the libmbedtls from a linux distro instead of the one bundled with the sources - similar to as it works now with libffi on the unix port.

Code Size

No response

Implementation

I hope the MicroPython maintainers or community will implement this feature

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

RFC: unix: Link with included libffi copy by default

closedby pfalconopened 2016-06-17updated 2024-07-20
rfc

We recently made a change of requiring recursive git clone and building an included dependencies for unix port. I'd like to compensate that by not requiring installing libffi-dev distro package to build uPy. We already have submodule for libffi, the caveat that it developers' source and doesn't include generated configure. So, building it requires autotools installed, which is even more stuff to install than just libffi-dev.

So, I'd like to include ready-to build libffi, and the usual question how to do that - using git submodule or pushing directly.

Having an own copy of libffi will also allow to patch out unused stuff we need. See https://github.com/micropython/micropython/commit/c9598604c6872d87b6c818c92efc4bce357d988c for motion is that direction (that was possible to do on upy side, but patching out SSE calling conventions and other niche stuff would need to be done on libffi level). Note that I also envision usage of libffi for baremetal ports.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied