ITADN

Building native modules?

#76Openjonnor 创建于 2025-04-21
J
jonnorcommented
Hi and thanks for developing this tool. Do you consider support for building [dynamic native modules](https://docs.micropython.org/en/latest/develop/natmod.html) to be in scope for the project? It has many similarities with building a firmware, especially that one needs to have a build toolchain set up - where the Docker approach taken here is very beneficial. And one needs to have a checkout of the MicroPython repository. But there are also differences. For example there is only a specification of a hardware architecture, not a specific board (ex xtensawin for Xtensa-based ESP32). And of course, the output would be .mpy file(s). There also needs to be some build files for the module - which is a Makefile which includes py/dynruntime.mk If you consider this to be in scope, do you have any preferences as to the design of such support? Either from a usage perspective, or implementation side?
4 条评论