← index #17878PR #6956
Related · high · value 0.643
QUERY · ISSUE

zephyr: Support for USER_C_MODULES

openby jonnoropened 2025-08-10updated 2025-09-20
enhancementport-zephyr

Description

Support including user modules like on other ports.
Should be via the USER_C_MODULES variable, in the same way as on other cmake-based ports.

Code Size

No impact

Implementation

I intend to implement this feature and would submit a Pull Request if desirable

Code of Conduct

Yes, I agree

CANDIDATE · PULL REQUEST

esp32: Integrate with the rp2 port mechanism to support user modules in cmake based builds.

closedby mocleiriopened 2021-02-24updated 2021-04-01
port-esp32

This work started as new work to try and restore the User Module support to the ESP32 port. However now this work builds upon the rp2 port work which is working to upstreamed from their repository back into micropython master in pull request #6960.

Some of the work done here in py/usermod.cmake has been folded into #6960 so the changes in the most recent rebase are much simpler.

I've updated this initial message to better reflect the latest status of this pull request.

Using the latest changes you can build the firmware with user modules as follows:

$ cd ports/esp32

$ make USER_C_MODULES=/path/to/module/micropython.cmake 

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