Page 1 of 1

How to Limit Components in ESP-IDF Compilation for Minimal Project?

Posted: Sat Jul 20, 2024 11:26 pm
by srikanth.palvai95
Hello ESP32 Community,

I'm working on a minimal ESP32 project using the ESP-IDF, specifically the "hello_world" example. However, I've noticed that many unnecessary components are being compiled, and I'd like to limit the compilation to only the essential components required for my project.

I dont understatnd one thing
To run a simple hello world why should we run 27 componets

I have tried this option by adding it in the CMakeLists.txt but no use.
set(COMPONENTS "esp_system" "esptool_py" "unity")

This is overkilling me.
Is there any way to reduce these componets form the build procress?

Re: How to Limit Components in ESP-IDF Compilation for Minimal Project?

Posted: Sun Jul 21, 2024 3:13 am
by ESP_Sprite
This actually is the minimum components. ESP-IDF includes a RTOS, so it needs that plus the supporting libraries. It has partition support, which needs the flash API. Your 'hello world' is an app, so it needs libraries to parse those. Your app is written in C and uses the Newlib API, so it needs those and supporting components. Your app uses the hardware (UART, timer for RTOS, memory mapping for flash) so it needs drivers and supporting libraries for that.

Re: How to Limit Components in ESP-IDF Compilation for Minimal Project?

Posted: Thu Aug 01, 2024 8:31 pm
by srikanth.palvai95
thanks for the information