Replies: 1 comment 8 replies
-
Your timing is great! I was planning to spend some time on this project in the coming days. You seem to be taking a global approach -- e.g. there is one project template that is replaced to include all of the additional ESP32 native components. I'm not sure how that scales to a project composed of several modules, each of which needs to include a particular ESP32 native component. In that case, it could be convenient to have each module's manifest list the native modules needed rather than a single project-level file. The challenge then becomes how to collect that list of native modules and inject them into the build. What do you think? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running into an situation where I need to include some native esp32 components into my project (the iot_usbh_modem component from esp-iot-solution)
The easy way to do this is to adding a file called "idf_component.yml" as follow:
However, this requires updating the "Native" esp32 project, which is here:
$MODDABLE/build/devices/esp32/xsProj-esp32s3
Currently there is no good way to switch to a different "flavor" of the project template, this is hard-coded in:
$MODDABLE/tools/mcconfig/make.esp32.mk
Here I'm proposing adding an optional build variable called ESP32_SUBCLASS_PROJECT_TEMPLATE, and change the code above into:
By doing this, simply adding this into the manifest file:
makes the template project switching possible.
This solves some problems but not all. In my case, I also need add idf_component.yml into the "copy file list" to make the make file copy this file, changes needed are (in make.esp32.mk file)
Beta Was this translation helpful? Give feedback.
All reactions