Hello,
I was wondering if there is a way to include frozen files based on board. I am doing this on stm32 port. My understanding is that anything put in the ../ports/stm32/modules folder will be packed as frozen regardless of what board is compiled for. For example is there anyway to set the path for frozen modules in the board related configuration file/folder?
Frozen Modules based on board
Re: Frozen Modules based on board
When you build your firmware image you can do: and this will override the use of the modules subdirectory.
Code: Select all
make BOARD=SOMEBOARD FROZEN_MPY_DIR=/path/to/some/directory
-
- Posts: 15
- Joined: Mon Jul 08, 2019 9:15 pm
Re: Frozen Modules based on board
Great Thanks,
Re: Frozen Modules based on board
You can also put FROZEN_MPY_DIR in your board-specific mpconfigboard.mk
This works well on STM32 because the default frozen modules are not required for board functioning, but on ESP32 you can't override the default ones. If you're interested, see https://github.com/micropython/micropython/pull/5084 for some early steps towards a future direction for additional board-level configuration of included resources.
This works well on STM32 because the default frozen modules are not required for board functioning, but on ESP32 you can't override the default ones. If you're interested, see https://github.com/micropython/micropython/pull/5084 for some early steps towards a future direction for additional board-level configuration of included resources.