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

srikanth.palvai95
Posts: 4
Joined: Mon Jul 17, 2023 4:41 pm

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

Postby srikanth.palvai95 » Sat Jul 20, 2024 11:26 pm

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?
Attachments
size-componets.PNG
size-componets.PNG (90.35 KiB) Viewed 1117 times

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Sun Jul 21, 2024 3:13 am

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.

srikanth.palvai95
Posts: 4
Joined: Mon Jul 17, 2023 4:41 pm

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

Postby srikanth.palvai95 » Thu Aug 01, 2024 8:31 pm

thanks for the information

Who is online

Users browsing this forum: No registered users and 97 guests