So you still call BOARD=ESP32C3 make if you want to build it, and that'll generate all the files in gen for Espruino, and will then call into idf.py to finally build everything - but honestly that feels like it'll tidy up the ESP32 build system a lot anyway.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Just looking again at https://docs.espressif.com/projects/esp-idf/en/stable/esp32/get-started/linux-macos-setup.html#configure-your-project they really seem to want you to use the
idf.py
, and it seems fighting against that might be an uphill battle, making it hard for us to upgrade to later versions.I'd be interested to know how you got 4.4.7 working but it feels a lot like we can modify the ESP32 makefile for Espruino to auto-generate a
CMakeLists.txt
for each target like https://github.com/rgomezwap/EspruinoS3/blob/main/make/esp32idf4/main/CMakeLists.txt and then just call theidf.py
to build everything.So you still call
BOARD=ESP32C3 make
if you want to build it, and that'll generate all the files ingen
for Espruino, and will then call intoidf.py
to finally build everything - but honestly that feels like it'll tidy up the ESP32 build system a lot anyway.