Select Modules to Compile #9323
-
Hello How do I select which modules to compile together with Micropython core in some port? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Look into ports/esp32/mpconfigport.h or py/mpconfig.h. There are #defines for enabling or disabling modules. You may also have a look at boards/manifest.py for python modules included into the build as frozen modules. |
Beta Was this translation helpful? Give feedback.
-
It depends on the module, but most things are controlled by options in mpconfigport.h and mpconfigboard.h. You can use this to disable entire modules, specific features from modules, or VM/runtime/language features. See py/mpconfig.h for the full list. You can also modify the manifest.py files to remove frozen modules. |
Beta Was this translation helpful? Give feedback.
It depends on the module, but most things are controlled by options in mpconfigport.h and mpconfigboard.h.
You can use this to disable entire modules, specific features from modules, or VM/runtime/language features.
See py/mpconfig.h for the full list.
You can also modify the manifest.py files to remove frozen modules.