← index #8041Issue #7753
Related · high · value 3.555
QUERY · ISSUE

ESP32: "user C modules" should be able to add components to the build

openby aguavivaopened 2021-11-28updated 2023-12-18
port-esp32

Right now the list of components is hard coded in

https://github.com/micropython/micropython/blob/97a7cc243b028833bdcb8ce0bc19b2bce7545851/ports/esp32/main/CMakeLists.txt#L96

USer C modules should be able to add new components without having to modify the above file

My current use case is a user module that adds support for the esp32-camera

Fixing this will help others extend micropython with minimal modifications in the core files

CANDIDATE · ISSUE

ESP32 port need a "make clean" to freeze custom py module

closedby Patoche5150opened 2021-09-07updated 2023-02-09
port-esp32

Hi,

I work with the new cmake toolchain and the last micropython version. Everithing is ok, I am able to build the ESP32 port.
However with this latest version of micropython, as soon as I add a new python module in the module directory or if I update one, the "make" command does not detect the new files and I have to do a make clean before each make.
If I modify a .C file, it is detected and the build is ok.
I checked the manifest.py file in the boards directory and the line freeze("$(PORT_DIR)/modules") is present.
My py modules are in this directory.

Previously, I worked with the 1.13 version and I didn't have this behaviour, each py modification was detectet with the make command.
Maybe I miss to modify a configuration file or something but I didn't find a solution for that.

Thanks

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