ports/unix: Allow building and linking dynamically against libmbedtls on Linux
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
RFC: unix: Link with included libffi copy by default
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.